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
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:17pm
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.

Even on a local 64 bit 16 GB SSD based machine I get the timeouts.

Yes, we have a big forum, but should that prevent us from upgrading ?

1062378 rows in thread
101481 rows in topics



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 8:25pm
It might be worth checking the database consistency with the DBCC CHECKDB command.
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:32pm
Originally posted by rune rune wrote:

It might be worth checking the database consistency with the DBCC CHECKDB command.

CHECKDB found 0 allocation errors and 0 consistency errors in database 'xxx_forum10'.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.

I will now try to reindex
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 8:39pm
If the zipped db backup can fit in your Dropbox, PM me a link and I'll take a look.  Obviously, only if your forum data is not secret.
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:44pm
Originally posted by rune rune wrote:

If the zipped db backup can fit in your Dropbox, PM me a link and I'll take a look.  Obviously, only if your forum data is not secret.

Thanks, but no thanks :-)

We're quite a big forum.

I tried to reindex the whole database with

EXEC [sp_MSforeachtable] @command1 =
      "RAISERROR('DBCC DBREINDEX(''?'') ...',10,1)
      WITH NOWAIT DBCC DBREINDEX('?')"

The reindexing went well, but still after reindexing it all. Still timeout.


'tblTopic' table saved successfully
'tblAuthor' table saved successfully
'tblThread' table
- Unable to modify table.  
Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
Back to Top
rune View Drop Down
Groupie
Groupie


Joined: 09 December 2010
Status: Offline
Points: 40
Post Options Post Options   Thanks (1) Thanks(1)   Quote rune Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 8:55pm
It sounds like you use the user interface to add the fields.

What happens if you use a command instead:

alter tblThread add Answer bit not null default 0

and

alter tblThread add Thanks int not null default 0

(These commands are based on Bruce's description of the fields.  I haven't checked them myself).
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 9:00pm
Originally posted by rune rune wrote:

It sounds like you use the user interface to add the fields.

What happens if you use a command instead:

alter tblThread add Answer bit not null default 0

and

alter tblThread add Thanks int not null default 0

(These commands are based on Bruce's description of the fields.  I haven't checked them myself).

See Smile

That did the trick.

Mange tak for hjælpen. 

Now let's see if the rest of the upgrade will continue
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 9:05pm
Your Database is being updated. Please be patient as this may take a few minutes to complete.

Stage 1: Creating New Database Tables and Fields..... Complete

Stage 2: Entering default values for new fields..... Complete

Stage 3: Migrating forum configuration settings to new format..... Complete

Stage 4: Migrate Post Count to new Point System (this may take some time to complete)..... Complete
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.