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
 General SQL Server Forums
 New to SQL Server Programming
 deleted the database but have a backup .
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gongxia649
So Suave

Azores
344 Posts

Posted - 04/09/2007 :  14:53:59  Show Profile  Visit gongxia649's Homepage  Reply with Quote

i backed up the database d1 and deleted it off my sql server.
when i innitiate the sql server instante is supposed to run the d1 DB. But since i deleted it, it pops up an error. How can i fix it?

tkizer
Almighty SQL Goddess

USA
37466 Posts

Posted - 04/09/2007 :  14:58:40  Show Profile  Visit tkizer's Homepage  Reply with Quote
What do you mean by "when i innitiate the sql server instante is supposed to run the d1 DB"?

What error are you getting?



Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

gongxia649
So Suave

Azores
344 Posts

Posted - 04/09/2007 :  15:21:41  Show Profile  Visit gongxia649's Homepage  Reply with Quote
cannot connect to p4
cannot open user dfault db. login failed
login failed for user p4\user (ms sql server, error 4064)
Go to Top of Page

spirit1
Cybernetic Yak Master

Slovenia
11751 Posts

Posted - 04/09/2007 :  15:23:22  Show Profile  Visit spirit1's Homepage  Reply with Quote
so this happens when?
when you start management studio or somewhere else?

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
37466 Posts

Posted - 04/09/2007 :  15:26:45  Show Profile  Visit tkizer's Homepage  Reply with Quote
You'll need to login as a different user, one with permissions to run sp_defaultdb. Then run sp_defaultdb to change the default database of your userid.

Tara Kizer
http://weblogs.sqlteam.com/tarad/
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.06 seconds. Powered By: Snitz Forums 2000