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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 08/13/2014 :  00:35:58  Show Profile  Reply with Quote
I am running sql svr2005 management studio on windows svr 2003. I once received error 4064, found out that db (SENT_be)was offline. I used 'master' to access login with windows authentication. i am desperate to reattach the database, this step "obj.explorer>SENT_be>tasks>bring online" does not work. can someone help please?



Yak Posting Veteran

52 Posts

Posted - 08/13/2014 :  06:59:06  Show Profile  Reply with Quote
You can resolve this by specifying another database you want to connect to; master, for example. Then you can reset the login's default database. With sqlcmd, you can do the following:
sqlcmd -d master -U sa -P mypassword
and then:
alter login sa with default_database = master
Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000