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,767 questions
{count} votes

11 answers

Sort by: Newest
  1. Jay Imerman 11 Reputation points
    2023-01-19T19:37:59.2633333+00:00

    I found a permanent solution! I am dropping SMSS, and am now using dbForge for SQL Server. This is an awesome tool! The ER diagram tool is compliant with industry standards and lacks all the bugs of SMSS, it saves passwords, and allows you to mark the maturity of each database (Dev, Test, Production...). It also allows you to sync database with a SCM, and compare and sync databases with each other. That's only a small portion of the features, it is so feature-rich I don't think I need another tool again.

    0 comments No comments

  2. Stacy Clark 21 Reputation points
    2022-01-24T07:03:55.157+00:00

    I add my servers in the Registered Servers and be done with it. Except for when you have to change the connection on an existing query window, that does suck. Profiler on the other hand...

    Also if you're like me and bring your laptop to clients to use SSMS locally where AD auth doesn't work because you're not on their domain, you can use this to launch SSMS with the target domain credentials and login with Windows Auth (assuming you have an account there ofc):

    runas /netonly /user:DOMAIN\myusername "C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe"
    

  3. Pham X. Bach 6 Reputation points
    2022-01-21T07:44:15.847+00:00

    For me, I solve my problem by running "SQL Server Manage Studio" (SSMS) by Admin right (right click, Run as Administrator) and tick check box "Remember password", type password and connect.
    Then the next time I run SSMS normally and boom, no need to type password again.
    It seems that SSMS have problem writing credential and run as Administrator do solve it.


  4. Lee Lepkowski 31 Reputation points
    2021-02-24T14:40:08.403+00:00

    Thank you @Abdul Arfat Mohammed and @Sean that simple solution (delete the server from the drop-down options, maybe re-launch SSMS, add the server being sure "Remember password" is checked) seems to do the trick.

    In case that fails these are the tedious/manual steps to accomplish the same thing:

    1. Exit SSMS
    2. Edit C:\Users\%username%\AppData\Roaming\Microsoft\SQL Server Management Studio\18.x\UserSettings.xml
    3. Look at the <Servers> and child <Element> with child <Connections> and subsequent child <Element> tags, remove just the <Element>...</Element> items for specific connections and/or servers where the saved password is an issue
    4. Before re-opening SSMS, using Windows 10 Credential Manager under "Windows Credentials" find and delete the Microsoft:SSMS:18:<serverName>:<userName>:<guid>... credentials for the specific logins that were problematic
    5. Re-open SSMS, connect to your server(s) using the "save password" option; the passwords will be saved

    Answer is from https://feedback.azure.com/forums/908035-sql-server/suggestions/32906749-ssms-still-forgets-passwords

    6 people found this answer helpful.

  5. Jay Imerman 11 Reputation points
    2021-01-08T14:21:38.187+00:00

    @Michael Küfner and @Cris Zhan-MSFT - THANKS for that! As of right now, I have removed the file and recreated connection credentials. Initially, it is working, I can confirm after several restarts it is remembering the password. However, I think time will tell; if it remains working after a week, I would say that is great evidence of a solution. I will check back.

    To recap, the solution was to remove C:\Users\userName\AppData\Roaming\Microsoft\SQL Server Management Studio\18.0\UserSettings.xml and restart SSMS, and re-enter connection info in the new version.