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

Related posts

Also in Hub

Using SQL Monitor to Detect Problems on Databases that use Snapshot-based Transaction Isolation

If you're using SQL Server's Read Committed Snapshot Isolation level (RCSI), to avoid long waits for a blocked resource, caused by transactions being held open for too long, then you'll want to monito...

Also in Product learning

When to use the SELECT…INTO statement

We can use SELECT…INTO in SQL Server to create a new table from a table source. SQL Server uses the attributes of the expressions in the SELECT list to define the structure of the new table.


Also in SQL Compare

How to reformat a database in one operation

Inherited a database from another team? Changed your team policy on the way that you format SQL? What's to stop you formatting the code of an entire database nicely, when you're developing it? It can ...

Also about SQL Compare

How to Customize Schema Comparisons using Auto Map in SQL Compare

It's a tedious task to have to compare two versions of a SQL script, side by side, for example to find differences between the version of the script on Production, and the one on the Test system. As a...

Also about SQL Data Compare

How to deploy a database plus static data using SQL Compare and SQL Data Compare

We can use the SQL Compare Pro command line with PowerShell to automate the process of creating a new build script for a version of the database, from the object scripts in the VCS. However, what if w...