Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 suspect db after upgrade

Author  Topic 

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2012-07-10 : 23:33:28
Okay, so here's a fun one. i just upgraded from SQL Server 2008 to 2012. everything w/ the upgrade when nicely. just rebooted the server, and guess what? my main DB is marked suspect.

so i set the db into emergency mode, and go to do a checkdb and i get:

Msg 946, Level 14, State 1, Line 1
Cannot open database 'MYDB' version 655. Upgrade the database to the latest version.


so now what?!

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2012-07-11 : 10:59:17
anyone got any ideas?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-07-11 : 12:51:07
Are you able to redo the upgrade with a backup/restore instead?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2012-07-11 : 13:51:42
not right now :( i'm not terribly worried about the data as i was able to transfer it from another server, just seems like in this case unless you guys had any great ideas, i'd have to restore the entire o.s. from backup, or uninstall sql2k12, reinstall 2k8, HOPE that i mount/fix, and then try the upgrade again.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-07-11 : 14:02:55
Why would you have to restore the entire OS? Just drop the database in 2012 and restore it in 2012 from your good 2008 backups.

Could you describe how you did the upgrade?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2012-07-11 : 14:06:45
i've had issues in the past where if the db version is different, it wont install. (i.e. if i backed up db in 2k8 sp2, and tried to restore in 2k8 sp3, it wont let me) is there a way to override that?

just used the setup wizard and upgraded the db engine.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-07-11 : 14:08:38
There's nothing to override unless your system is screwed up. A backup in a lower version will restore in a higher version.

I would avoid the upgrade wizard in the future, it isn't recommended. Always use backup/restore for upgrades and always do a side-by-side upgrade where you have a new instance and can later uninstall the old instance.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2012-07-11 : 14:10:18
so in this case, install a new 2012 instance, backup db's from 2008, restore to 2012, and then drop 2008 when happy?
Go to Top of Page

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2012-07-11 : 14:14:40
btw, anything i can do the force-repair the db i have an issue w/ i'd rather not have to create all the indexes, but if i need to, so be it.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-07-11 : 14:19:22
quote:
Originally posted by albertkohl

so in this case, install a new 2012 instance, backup db's from 2008, restore to 2012, and then drop 2008 when happy?



Yes, exactly. It's the safest approach.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-07-11 : 14:20:33
quote:
Originally posted by albertkohl

btw, anything i can do the force-repair the db i have an issue w/ i'd rather not have to create all the indexes, but if i need to, so be it.



Just restore your 2008 backup to this 2012 instance.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2012-07-11 : 14:41:17
no backup on that db. (been doing all kinds of shuffling and what not, so backups are broken) like i said, it's not HUGE, but i would think there's a way to make sql run the check considering the db is mounted , and in emergency mode. if not, w/e.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-07-11 : 14:46:41
I think something went very wrong during the upgrade process. Without backups, I don't see that we can help. Never, ever do an upgrade without a known good backup on the older version. It's just asking for trouble.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2012-07-11 : 15:01:47
agreed :) the upgrade on the other server went oh so well though! :) live and learn... thanks again tara. any cool articles you can refer me to on new gnarly things for sql 2012?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-07-11 : 15:15:21
I don't have any articles to share. There's plenty of info out there though from MCMs, Microsoft, and other bloggers.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -