A Blog about SQL Server 2005.
Tuesday, January 30, 2007
  Cannot open user default database. Login failed. Login failed for user ‘UserName’. (Microsoft SQL Server, Error: 4064)
Found the following useful article which proved to be very useful in regard to troubleshooting the following SQL Server 2005 error:

Article Link

This error bugged the crap out of me tonight and I saw all kinds of crazy answers usually involving some sort of SQLCMD -blah -blah…i think this maybe the problem with command line happy developers/dbas but to make a long story short the fix is EASY and you will kick yourself for not trying this.

1. click the options button if the options are not showing.

2. click the connection properties tab if it is not active

3. click on the Connect to database: dropdown

4. type in the name of a database that still exists (ex. ‘master’)

5. connect!

I heard all kinds of rants and raves about how atrocious it was that microsoft did this to us and I agree it does suck that SQL Server doesn’t do something about this automagically but what would you suggest it do?

 
This blog will contain links and information about the Microsoft SQL Server 2005 Database Engine and all related and relevant information pertaining to it. I will do my best to provide accurate information. Your feedback is much appreciated and I look forward to providing useful information.

My Photo
Name:
Location: Edmond, Oklahoma, United States

Water Buffalo n. A large buffalo (Bubalus bubalis) of Asia, often domesticated especially as a draft animal and having large spreading horns. Also called carabao, water ox.

ARCHIVES
July 2006 / August 2006 / October 2006 / December 2006 / January 2007 /


Powered by Blogger