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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Error - when trying to attach my SQL database

Author  Topic 

obinna
Starting Member

26 Posts

Posted - 2007-12-18 : 10:59:08
Hi

I Have just detached my SQL Server database, I am currently running SQL Server 2005, when I try to reattach it I get the error Cannnot open user default database - Login Failed

Any ideas.

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2007-12-18 : 12:18:05
You have detached your default database. Log on as a different admin, and change your logins default to a different database (such as master).

[Signature]For fast help, follow this link:
http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx
Learn SQL or How to sell Used Cars
For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page

obinna
Starting Member

26 Posts

Posted - 2007-12-18 : 13:12:47
Thakns for your reply..... so currently when I log in sql server management studio, I log in through windows authentication, or do I log in as an adminstrator n the box itself.
Go to Top of Page

obinna
Starting Member

26 Posts

Posted - 2007-12-18 : 13:16:03
Thakns for your reply..... so currently when I log in sql server management studio, I log in through windows authentication, or do I log in as an adminstrator n the box itself.
Go to Top of Page

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2007-12-18 : 13:40:24
If you are logging in by windows authentication and you are getting the error, log in as a SQL login instead.

[Signature]For fast help, follow this link:
http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx
Learn SQL or How to sell Used Cars
For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page
   

- Advertisement -