Álvaro Brange’s Blog.

That’s all about anything that I want to share with you. Español & English
  • Home
  • About me
  • Links

Cannot open user default database, login fails

19 12 2008

If you get this message when you try access to you database manager, could be because you default database is down or missing. To fix this I made this:

  1. In dialog “Connect to server”, click in Options
  2. In Connections Properties Tab, in the field “Connect to Database” you must write some database, like “master” or other that is active. Note: Don’t select “<Browse server> because this will raise the same error “Cannot open user default database, login fails”
  3. and execute (Change MACHINE\USER to match with your user account):  “ALTER LOGIN [MACHINE\user]
    WITH DEFAULT_DATABASE = master
    GO
  4. Ready.

ps: SQLCMD is not necessary :)

Thank to post of benjamin harrell and comment of Fritz Laurel.

Regards,

Álvaro


Comments : Leave a Comment »
Tags: alter login, Cannot open user default database, default database, default_database, login fail, SQL 2005, Sql server 2005, SQLCMD
Categories : Computing


Tags

"AeBC Agenda" "Agenda" "agenda gratis" "agenda personal" "agenda telefónica" "Gmail in sony ericsson" "own projects" "romantic relation" "setting up gmail account" "shared box" "Sony ericsson" 5.1 sound sistem 6 channel alsa alsa mixer apache ASPNET boyfriend Caller Cannot open user default database Contact Manager contactos Django Facebook girlfriend Gmail HP LaserJet 1018 HPLIP Installing K550 Lighttpd Linux login fail manager Movistar PyFacebook Python relationship social networking surround system t280 telephone list ubuntu wetwoo WeTwoo.com

Blogroll

  • Blog Admin
  • WordPress.com

Education

  • Open Course Ware, MIT

Programming Languages

  • Mercatus

Science

  • Open Course Ware, MIT

Social

  • Mercatus

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.com

Recent Posts

  • Something different today
  • NetworkManager doesn’t manage the wired connections on Ubuntu
  • How to kill VNC Server (vino-server) remotely / Reiniciar el servidor VNC en Ubuntu
  • Código Konami oculto en Facebook / Konami code hidden on facebook
  • Update pdb file for debugging with Visual Studio 2008 in library type project V.B .Net

Archives

  • August 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • December 2008
  • October 2008
  • June 2008
  • May 2008
  • January 2008
  • December 2007

 

December 2008
M T W T F S S
« Oct   Feb »
1234567
891011121314
15161718192021
22232425262728
293031  


Blog at WordPress.com • Freshy theme by Jide.