We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Connection Failed, check SQL Server Registration Properties

Medium Priority
2,839 Views
Last Modified: 2012-06-21
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
Comment
Watch Question

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.

Author

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
I have to admit I'm stumped.  I'll as the moderators to send out an alert on this.
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.