Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Issue Upgrading SQL Server Database to v10.x
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Issue Upgrading SQL Server Database to v10.x

 Post Reply Post Reply Page  <123>
Author
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 4:56pm
The link to the image did not work, but I am guessing the time out is a database timeout rather than a script timeout.

You would need to increase the database query timeout on the SQL Server so that the new fields can be added to the tables.
Back to Top
hummelmose View Drop Down
Newbie
Newbie


Joined: 05 November 2009
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote hummelmose Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 5:03pm
It's the same error described above.

http://dl.dropbox.com/u/65950/bruce.png


http://dl.drop.com/u/65950/bruce.png

As written I've set timeout to 0 (no timeout)
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 5:09pm
Then my previous reply to you was correct, this is a database timeout and you need to have the database admin increase the query timeout on the database server.

When new fields are added to a table SQL Server will have to rebuild the table with the new fields. This can take some time and if the database is quite large it can take longer than queries are allowed to take giving the database timeout that you see. 

This is database server side rather than on the web server side, so increasing the script timeout would not fix the issue.

Failing that you would need to attempt to create the new fields in the tblThread table manually.

The fields that you would need to create the tblThread are:-

1. Answer - datatype = bit - default value = 0
2. Thanks - data type = integer - default value = 0
Back to Top
hummelmose View Drop Down
Newbie
Newbie


Joined: 05 November 2009
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote hummelmose Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 5:12pm
I'm trying to attach images. But you wont let me.

Look at my SQL Server settings:

http://dl.dropbox.com/u/65950/bruce2.png
http://dl.dropbox.com/u/65950/bruce3.png

So I still can't understand why I get a timeout. If you mean something else, please explain what else to set different on the sql server
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 5:17pm
You will need to create the new fields in tblThread manually using the info I gave in the previous post as there is nothing that can be changed in the upgrade script to try and fix this issue, your database is simply to large for web server side upgrade scripts to work.

The other tables will be upgraded fine, it will just be tblThread that you need to manually update.
Back to Top
hummelmose View Drop Down
Newbie
Newbie


Joined: 05 November 2009
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote hummelmose Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 5:37pm
Originally posted by WebWiz-Bruce WebWiz-Bruce wrote:

You will need to create the new fields in tblThread manually using the info I gave in the previous post as there is nothing that can be changed in the upgrade script to try and fix this issue, your database is simply to large for web server side upgrade scripts to work.

The other tables will be upgraded fine, it will just be tblThread that you need to manually update.

'tblThread' table
- Unable to modify table.  
Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Sorry. No cigar. It was done directly on the SQL server via Admin interface.


Back to Top
rune View Drop Down
Groupie
Groupie


Joined: 09 December 2010
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote rune Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 6:22pm
Sounds like some other program has a lock on the table.

The brute-force way to fix that is to restart the sql server.

Bruce: the database does not normally time out just because the table is big.  Only if it is overloaded _and_ has timeout specially configured by the admin.  On an unloaded server, you can modify a table with hundreds of thousands of rows in a few seconds.
Back to Top
hummelmose View Drop Down
Newbie
Newbie


Joined: 05 November 2009
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote hummelmose Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 8:12pm
Originally posted by rune rune wrote:

Sounds like some other program has a lock on the table.

The brute-force way to fix that is to restart the sql server.

Bruce: the database does not normally time out just because the table is big.  Only if it is overloaded _and_ has timeout specially configured by the admin.  On an unloaded server, you can modify a table with hundreds of thousands of rows in a few seconds.

It's a fresh restore, so no one has lock on the database.
Back to Top
 Post Reply Post Reply Page  <123>

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.