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
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 SQL SERVER DB ERROR 4064
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rale
Starting Member

1 Posts

Posted - 08/13/2014 :  00:35:58  Show Profile  Reply with Quote
Hi,
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?

thanks.


RaLeX

Lincolnburrows
Starting Member

43 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  
 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.05 seconds. Powered By: Snitz Forums 2000