SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 suspect db after upgrade
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

albertkohl
Aged Yak Warrior

USA
723 Posts

Posted - 07/10/2012 :  23:33:28  Show Profile  Visit albertkohl's Homepage  Reply with Quote
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

USA
723 Posts

Posted - 07/11/2012 :  10:59:17  Show Profile  Visit albertkohl's Homepage  Reply with Quote
anyone got any ideas?
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
35007 Posts

Posted - 07/11/2012 :  12:51:07  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

USA
723 Posts

Posted - 07/11/2012 :  13:51:42  Show Profile  Visit albertkohl's Homepage  Reply with Quote
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

USA
35007 Posts

Posted - 07/11/2012 :  14:02:55  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

Edited by - tkizer on 07/11/2012 14:03:34
Go to Top of Page

albertkohl
Aged Yak Warrior

USA
723 Posts

Posted - 07/11/2012 :  14:06:45  Show Profile  Visit albertkohl's Homepage  Reply with Quote
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

USA
35007 Posts

Posted - 07/11/2012 :  14:08:38  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

USA
723 Posts

Posted - 07/11/2012 :  14:10:18  Show Profile  Visit albertkohl's Homepage  Reply with Quote
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

USA
723 Posts

Posted - 07/11/2012 :  14:14:40  Show Profile  Visit albertkohl's Homepage  Reply with Quote
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

USA
35007 Posts

Posted - 07/11/2012 :  14:19:22  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

USA
35007 Posts

Posted - 07/11/2012 :  14:20:33  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

USA
723 Posts

Posted - 07/11/2012 :  14:41:17  Show Profile  Visit albertkohl's Homepage  Reply with Quote
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

USA
35007 Posts

Posted - 07/11/2012 :  14:46:41  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

USA
723 Posts

Posted - 07/11/2012 :  15:01:47  Show Profile  Visit albertkohl's Homepage  Reply with Quote
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

USA
35007 Posts

Posted - 07/11/2012 :  15:15:21  Show Profile  Visit tkizer's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000