Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server 2008 SSMS won't remember password

SQL Server 2008 doesn't remember password inspite of checking the "Remember Password" checkbox.

I was suspecting a reboot would solve the problem. But, the issue persists.

Environment: Windows Vista Ultimate, SQL Server 2008

I have been hesitant to post this, as it seems so trivial and weird.

like image 319
pencilslate Avatar asked Aug 24 '09 04:08

pencilslate


People also ask

Where does SSMS store passwords?

In this article we'll explain how to fix all these problems you might have with SQL Server Management Studio (SSMS). Where are SQL Server Management Studio passwords saved? SQL Server Management Studio 2005: In Windows 8/7/Vista: C:\Users\%username%\AppData\Roaming\Microsoft\Microsoft SQL Server\90\Tools\Shell\mru.

How do I remove a password from SSMS?

I am using SSMS v18. 4, and this solution worked for me. open Connect to Server > open Server name dropdown list and delete all saved logins.

What is the default password for SSMS?

The remote instance of MS SQL / SQL Server has the default 'sa' account enabled without any password.

How do I find my SQL Server connection password?

First you need to register the servers in the SSMS. Either right click a server in Object Explorer and select Register or right click Local Server Groups, select New Server Registration and select the server name. The server password will be filled if they were remembered before.


2 Answers

There is a solution for this in SSMS 2012 that worked for me. Microsoft now provides a mechanism for removing a server from the list of remembered servers, and removing the offending server from the list will allow you to save the password the next time you connect to it:

  1. In the Connect to Database Engine dialog, drop down the server name list
  2. Use the arrow keys to select the server for which passwords aren't remembered
  3. Press the delete key on the keyboard.

https://web.archive.org/web/20160216044501/http://blogs.msdn.com/b/managingsql/archive/2011/07/13/deleting-old-server-names-from-quot-connect-to-server-quot-dialog-in-ssms.aspx

like image 136
PunctuallyChallenged Avatar answered Sep 17 '22 09:09

PunctuallyChallenged


If you register the server, and connect to it that way (just a quick double click), it works great!

  1. In SSMS -> View | Registered Servers
  2. Choose "Database Engine" (should be selected by default)
  3. Right click on "Local Server Groups" and choose "New Server Registration" (or create your own group first if you prefer)
  4. Enter all required details: Server address, username, password, tick "Remember password" box, Registered server name
  5. Click "OK" -- now you can always connect to this server from this "Registered Servers" tool window - it will not ask for a password again.

I got this from serverfault.com and it worked great!

like image 39
Robert Avatar answered Sep 20 '22 09:09

Robert