Connection Failed, check SQL Server Registration Properties

Posted on 2009-02-11
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.

Question by:HAC_ITS
    LVL 32

    Expert Comment

    by:Daniel Wilson
    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 Comment

    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.

    LVL 32

    Expert Comment

    by:Daniel Wilson
    I have to admit I'm stumped.  I'll as the moderators to send out an alert on this.
    LVL 1

    Accepted Solution

    You could try using the 3608 Trace Flag - that makes SQL Server start up w/ only the Master DB.

    See this site for details >

    Author Closing Comment

    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,

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
    Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
    This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
    Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now