6 October 2017
6 October 2017

Remembering passwords in SQL Compare and SQL Data Compare

We’ve recently added a feature to automatically populate your SQL Server credentials when you’re using SQL Compare or SQL Data Compare. If you check the Remember credentials box, passwords will now be stored in two places: the Windows Credential Store and your project file if you save one.

The project file has long been a way to share comparisons and you can still save your credentials there. However, this doesn’t do the whole job if you often make the same comparison between many different environments, tediously entering the password for each server when you edit the project.

Enter the Windows Credential Store: if you choose to save your password, it will now be stored here even if you don’t save a project. This means it can be filled in automatically next time you connect to the same server from SQL Compare or SQL Data Compare.

The Credential Manager in the Windows Control Panel has a tab called Windows Credentials where you can manage credentials saved by many applications. The ones saved by SQL Compare and Data Compare have names like Redgate SQL Connection [MyServer] and you can delete any you don’t want from there. (Side note: the stored value is actually a connection string to support different authentication methods. If your password changes, it’s easiest to re-enter it in the Edit Project dialog).

SQL Comapre password 2

If you don’t want any new passwords to be stored, just ensure the Save password box in the Edit Project dialog is unchecked. This will disable both types of password storage, so passwords will not appear in the Credential Store and your project files will be safe to distribute.

It’s the sort of feature you might have used without even noticing. SSMS and SQL Doc have remembered passwords for a long time now, and it was a popular suggestion on the SQL Compare UserVoice page. If there are other features you’d like to see in SQL Compare or SQL Data Compare, please let us know.

Tools in this post

SQL Compare

Compare SQL Server schemas and deploy differences fast.

Find out more

SQL Data Compare

Compare and deploy SQL Server database contents.

Find out more

Share this post.

Share on FacebookShare on Google+Share on LinkedInTweet about this on Twitter

You may also like

  • Article

    Automating database deployments to and from source control using SQL Compare and PowerShell

    Our goal is to show how to use SQL Compare Pro command line with PowerShell to automate the following processes: Getting a new database into version control, or updating the object scripts in the VCS to reflect the latest database changes Creating a new build script for a database version, from the object scripts in

  • Article

    Using SQL Compare with Dynamic Data Masking

    One of the features that I hear many DBAs excited about in SQL Server 2016 is Dynamic Data Masking (DDM). This allows DBAs to centrally set a mask that is returned for a table column instead of the actual data. This means an application that wants to limit what information is returned to certain users

  • Article

    Using SQL Data Compare to Synchronize Custom Error Messages

    One way to offer a better experience to our application users is to anticipate likely mistakes they could make, such as when filling in a web form, and provide them with a meaningful error message that allows them to continue quickly with their work. One way to do this in SQL Server to is to

  • Article

    Eliminating 'noise' from database deployment scripts using SQL Compare project options

    A database comparison tool like SQL Compare removes a lot of the pain behind the task of comparing SQL Server database schemas, generating a synchronization script, and then deploying the changes from the source to the target database. However, depending on how you have SQL Compare configured, there may still be some manual work to

  • University

    Take the SQL Comparison Tools course

    This course takes you from installation all the way up to getting the most out of the industry standard tools for SQL Schema & Data comparison. Whether you need to deploy changes or explore the differences between your environments, through this course you'll learn how SQL Compare and SQL Data Compare can help you do the job quickly, simply, and with zero errors.

  • Forums

    SQL Compare Forum

    Forum for users of SQL Compare schema synchronization utility