Connection Failed, check SQL Server Registration Properties

Ok here's the situation, we backed up a database on SQL 2000 and restored it to SQL 2008.  The vendor then told me to disconecct the database from SQL 2000, problem is that their program craped out on SQL 2008 and now the want to move back to SQL 2000 but they forgot that they set their database to as the default database.  With it now offline we get the error message in the title and don't know how to change the default database to be able to get back online with the SQL server.  They also don't know what the sa password is.  Any help and suggestions are more than welcome.

Thanks,
Ronnie
2-11-2009-12-12-17-PM.png
HAC_ITSAsked:
Who is Participating?
 
FiveForFightingCommented:
You could try using the 3608 Trace Flag - that makes SQL Server start up w/ only the Master DB.

See this site for details > http://support.microsoft.com/kb/224071
0
 
Daniel WilsonCommented:
Can you log into the box that hosts SQL server w/ local admin rights?  Then connect to the DB using Windows authentication.  

that should let you regain control and fix things up.
0
 
HAC_ITSAuthor Commented:
That message is from being logged in as the domain admin with windows authentication selected.  The problem seems to be that the default database was taken offline and now I can't get into any of the databases that were previously there.  I guess I want to know if it's possible to change the default database back to master without knowing the sa password.

Thanks
0
 
Daniel WilsonCommented:
I have to admit I'm stumped.  I'll as the moderators to send out an alert on this.
0
 
HAC_ITSAuthor Commented:
I found a solution on another forum but htis was close.  I was able to change the default database from the one was taken offline back to the master using osql in the command prompt:

OSQL -d master -E -Q"EXEC sp_defaultdb 'MyDomain\MyAccount','master'"

Thanks for the help,
Ronnie
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.