Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Compacting DB
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Compacting DB

 Post Reply Post Reply Page  12>
Author
Muskan View Drop Down
Groupie
Groupie


Joined: 14 May 2004
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Muskan Quote  Post ReplyReply Direct Link To This Post Topic: Compacting DB
    Posted: 19 September 2004 at 4:31am

I encountered this error while trying to compact the forum db.

Active Server Pages error 'ASP 0113'

  1. Script timed out
  2. /admin/compact_access_db.asp
  3. The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.

We have a huge db with thousands of members and posts. Can't I just chnage the script time out property in the script itself instead of asking the server admin to ask for chnaging their standard.

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2004 at 6:21am
you can over ride the script time out by adding the following to the top of the asp page

server.ScriptTimeout = x

(x = secounds)

Back to Top
Muskan View Drop Down
Groupie
Groupie


Joined: 14 May 2004
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Muskan Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2004 at 8:58am

Any idea what would be the ideal time for compating that db

 

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2004 at 4:43pm

With that size of a db in particular, make sure you lock the forums before compacting.


Lead me not into temptation... I know the short cut, follow me.
Back to Top
typhoon View Drop Down
Newbie
Newbie
Avatar

Joined: 04 November 2003
Location: Sweden
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote typhoon Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2004 at 5:14am
with that many users i wouldnt go with an Access DB as backend :-)
Back to Top
Phat View Drop Down
Senior Member
Senior Member


Joined: 23 February 2003
Status: Offline
Points: 386
Post Options Post Options   Thanks (0) Thanks(0)   Quote Phat Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2004 at 6:51am
Originally posted by dpyers dpyers wrote:

With that size of a db in particular, make sure you lock the forums before compacting.



The only problem with this is the pages need to access the db to see if the db is locked anyway. There must be a better way to do this like a text file or something.

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2004 at 8:59am
Originally posted by Phat Phat wrote:

Originally posted by dpyers dpyers wrote:

With that size of a db in particular, make sure you lock the forums before compacting.



The only problem with this is the pages need to access the db to see if the db is locked anyway. There must be a better way to do this like a text file or something.

The best way is to lock the db, download it, back it up, and compact+repair it locally. When you upload it back again, ater the c+r, delete the .ldb file then unlock it. The .ldb file tracks who (not a wwf userid - it's a generic session-based who) is currently doing what on the db.

People often report problems with the db being corrupted after doing a compact+repair and they have to do another c+r. I think the main reason that happens is that people are trying to do adds, changes, and deletes - or had an updatein progress while an unlocked db is being compacted. After you lock an access db, you need to wait a minute to let it quiesce - allow the access engine time to complete transactions in progress.

Just trying to read a db being c+r'd doesn't affect the internal indexes like updates/deletes will. I think Access is supposed to dis-allow updates while a c+r is in progress, but I don't believe that's 100% reliable and results may vary depending upon the access engine specified in the connection string and the connection method used - better off to lock the db and allow it time to quiesce if you can't download it.


Lead me not into temptation... I know the short cut, follow me.
Back to Top
Muskan View Drop Down
Groupie
Groupie


Joined: 14 May 2004
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Muskan Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2004 at 11:06pm

Thanks everyone. We would be migrating to SQL Server in a couple of weeks.

For the time being, I did lock the forums before compacting it. Also raised the script timeout to 300. The standard given for the admin pages in 90.

It still does not work!

Any Ideas?

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.