SQL Server Management Studio 18 remember password not working?

galletto 186 Reputation points
2020-09-22T14:20:52.377+00:00

With one of the latest updates of SSMS 18 (I'm now on 18.6), the remember password feature does not seem to work anymore. Am I missing something?

Cheers,
Galletto

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,769 questions
{count} votes

11 answers

Sort by: Oldest
  1. Erland Sommarskog 101.4K Reputation points MVP
    2020-09-22T22:00:42.04+00:00

    It seems to work for me, but I don't have that many SQL logins.

    An MVP colleague had problems with this, but I believe this was in an earlier version and I think 18.6 resolved his problem.

    In the Control Panel, you can look in the Credential Manager. I seem to recall that he had a bit of a mess there.


  2. Cris Zhan-MSFT 6,606 Reputation points
    2020-09-23T09:16:51.607+00:00

    Hi @galletto ,

    Can you describe your situation/scenario in detail to conclude that this feature is not available.
    I used SSMS18.6 on multiple machines and did not encounter this problem.

    SSMS's password management switched to Windows Credential Manager with version 18


  3. Abdul Arfat Mohammed 31 Reputation points
    2020-10-14T05:23:57.117+00:00

    @galletto Hi there!

    I faced the same problem. As a workaround, you can delete that entry (which SSMS forgets) from the 'Connect to Server' dialog box as shown below:

    • Hover on that entry
    • Click del on keyboard
    • Now close SSMS and open it and type in that entry again and make sure you click remember password checkbox.
    • Now open SSMS it should be remembering password now.

    Let me know how it goes for you.

    Probably my guess is that SSMS is unable to save the password later if we initially (first time) ask it to not remember.

    6 people found this answer helpful.

  4. Ronen Ariely 15,096 Reputation points
    2020-09-24T01:11:16.95+00:00

    Good day all :-)

    Here is my 2 cants on the topic:

    ----------

    galletto: I don't see anything resembling a Credential Manager in my W10 PC?

    There are multiple options to open the "Credential Manager" or the "Stored User Names and Password" GUI.

    Both provide the same information and the options to add, edit, and remove credentials. The "Stored User Names and Password" GUI also provide option to backup and restore information. The information can be also managed using command shell and PowerShell

    option 1: To open Credential Manager in windows 10, type "credential manager" (without the quotation marks) in the search box on the taskbar and select "Credential Manager Control panel" or "Credential Manager".

    Option 2: Open "Control Panel" -> Select "User accounts" -> select "Credential Manager"

    27582-image.png

    Option 3: To manage Credential using PowerShell and Command Shell you can use the utility "cmdkey.exe" using the command "cmdkey"

    # Get more information  
    cmdkey   
    # Show all Credentials  
    cmdkey /list  
    # Add Credential  
    cmdkey /add:<target> /user:<user_name> /pass:<password>  
    

    option 4: Open the "Stored User Names and Password" GUI

    Start > Run > rundll32.exe keymgr.dll,KRShowKeyMgr

    Option 5: open the Credential Manager (Do not ask me why "Userpasswords2" but this works)

    Start > Run > Control Userpasswords2 > Click the "Advanced" tab and then click "Manage Passwords".

    Option 6: Using Control Panel

    Open "Control Panel" > "User Accounts" > "Credentional manager"

    ----------

    Erland: It seems to work for me, but I don't have that many SQL logins.

    Not sure if this considered as many, but on my laptop I have about 50 and I did not noticed any issue.

    ----------

    So what does it mean that SSMS switched to Windows Credential Manager?

    SQL Server Management Studio version 18 stores the passwords under the windows application saved password which can be managed using the "Credential Manager". Therefore, we can use the options above in order to open the "Credential Manager" and you will see the SSMS stored password by default.

    If there is an issue and the passwords where not stored then we should not see them there. If the passwords were stored then you should see one entry for each case (for each user in each app).

    (1) Open Credential Manager and move to the tab "Windows Credential" (usually in opened on "Web Credential")

    27593-image.png

    (2) Scroll down to the list of "generic Credential", where you should find the SSMS Credentials

    check if you see Credentials which look like: Microsoft:SSMS:18:<here comes the specific information for this Credential>

    If you have these then SSMS probably stored your information.

    Moreover, we can add password to the SSMS directly in the "Credential Manager" without even open the SSMS.

    Do I need to do anything about that in SSMS?

    Usually not and it should work, but in case it does not works well then you can check the information using the Credential Manager

    1 person found this answer helpful.

  5. Gabriel Gtz 1 Reputation point
    2020-09-28T05:53:35.48+00:00

    Well... this is not an answer, sorry, it's a complaint because this problem persists for years and versions, I really can't believe it, the randomness drives me crazy, well, in fact, now I can "feel it", when SSMS will forget the password, I think that sometimes is better than nothing and we have to take it that way...

    0 comments No comments