SQL Compare - 10.0
Setting data sources - SQL Compare
When you create a new comparison project, SQL Compare requires information about which two data sources you want to compare, and how to connect to them. You enter this information on the Project Configuration dialog box.

Selecting data sources
Specify the two data sources you want to compare in the Data Sources tab. You specify a source and a target.
The source is the data source that will not change. The target is the data source that will change.
To switch the source and target, click ![]()
You can compare the following types of data source:
- Database
A database you can connect to on a SQL Server. You will need to enter connection details.
If you want to compare Oracle or MySQL databases, see: Schema Compare for Oracle / MySQL Compare.
- Backup
Native SQL Server backups or Red Gate SQL Backup backups. You can specify a backup as a data source only if you are using SQL Compare Professional edition.
For more information, see: Working with backups.
- Snapshot
A file produced by SQL Compare that contains information about the structure of a database.
For more information, see: Working with snapshots.
- Source Control
There are two options for the Source Control data source:
- Direct from source control
A revision of a database from a source control repository.
For more information on getting your database into source control, see: Getting started - SQL Source Control.
- Scripts folder
A folder containing the SQL creation script files that collectively define the database structure. This is usually organized into a number of subfolders.
For more information, see: Working with scripts folders.
You can specify Source Control as a data source only if you are using SQL Compare Professional edition.
- Direct from source control
You can compare any combination of data source types in your project.
If you select a snapshot or a backup as the target, the snapshot file or backup will not be modified. Instead, a deployment script is generated to modify the database from which the snapshot or backup was made.
If you select a scripts folder as the target, you can choose to modify those script files directly during deployment, or to create a deployment script to modify the database from which the scripts folder was created.
Selecting a database
- Under Source or Target, select Database.
- Type or select the name of the SQL Server in the Server box.
If you experience problems selecting a SQL Server that is not running on the LAN, for example if you are accessing the SQL Server via an Internet connection, you may need to create an alias to the SQL Server using TCP/IP (refer to your SQL Server documentation for details). You can then type the alias name in the Server box to connect to the remote SQL Server.
To refresh the Server list, right-click the box and click Refresh, or scroll to the top of the list and click Refresh.
- Select the authentication method, and for SQL Server authentication enter the User name and Password.
If you want SQL Compare to remember your password, select the Save password check box.
- In the Database box, type or select the name of the database.
If you want to create a new database, at the top of the database list, click Create Database. For full details, see: Creating a new database.
To refresh the Database list, right-click the box and click Refresh, or scroll to the top of the list and click Refresh.
Selecting a backup
- Under Source or Target, select Backup.

- Click Add Backup Set Files to select all the files making up the backup set you want to compare.
To specify a network path, type the full path, including the server name, for example:
\\ServerName\MyFolder\MyFile
If any of the files you add are encrypted, the Decrypt Backup Files dialog box is displayed. Enter the password to decrypt these files.
To use a differential backup as a data source, you must also add the associated full backup.
Note that SQL Compare does not support using partial, filegroup, or transaction log backups as a data source.
When you have added a backup set, one of the following icons is displayed:
The backup set is valid and complete. Select the check box to use this backup as a data source. |
|
The backup set you have selected cannot be used as a data source. This error is shown if the backup is corrupted, or if you have selected a partial, filegroup, or transaction log backup. |
|
One or more files in the backup set is encrypted. Click the padlock icon to display the Decrypt Backup Files dialog box. |
|
Either the backup set is incomplete, or a differential backup has been added without the corresponding full backup. |
Selecting a SQL Compare snapshot
- Under Source or Target, select Snapshot.
- In the Snapshot box, select the name of the snapshot, or click
to browse to the snapshot file.
SQL Compare displays information about the database from which the snapshot was created.
Selecting a revision from source control
- Under Source or Target, select Source Control, and then select Direct from source control:

- In the Repository box, select a database linked to SQL Source Control, or click <Browse source control...> to specify a repository URL.
- In the Version box, select a specific revision from the source control history, or select the latest revision:

Selecting a scripts folder
- Under Source or Target, select Source Control, and then select Scripts folder.
- In the Scripts Folder box, select the folder, or click
to browse to the folder.
See also |
Was this article helpful?
SQL Compare
- Logging and log files
- Stored Procedures and Functions created with wrong name
- Synchronization scripts may be in incorrect version of SQL syntax
- Extended properties not permitted error (version 5.2)
- CLR Procedures' permissions are not recreated (version 5)
- Support for 'returns NULL on NULL Input' in CLR functions (version 5)
- Project files (scp files) suddenly appear on desktop (version 5)
- Stored procedures using full-text queries fail to synchronize
- When does the synchronization process rebuild tables?
- Unable to begin a distributed transaction error synchronizing databases
- User or role already exists in the current database error
- Clarification on the "Ignore Triggers" option in the SQL Compare command-line version
- Common table expressions returned by User Defined Functions may fail
- Can't compare encrypted text in SQL Server 2005, 2008
- Exception when connecting to SQL Server (Version 6)
- SQL comparison and synchronization automation capabilities
- Error logging in SQL Compare 6.2
- Using Team Foundation Server source control system
- Creating a SQL 2000 compatible database from a SQL 2005 database using SQL Compare
- Support for numbered stored procedures
- SQL Compare 7 Object-level restore
- Index was outside the bounds of the array error when registering databases X64
- HTML reports are generated for identical comparisons
- Comparison may seem slower than necessary
- DEFAULT_SCHEMA clause cannot be used with a Windows group
- SQL Compare may drop and create CLR assemblies
- SDK activation prompt may appear when starting a new SQL Compare project
- Column does not allow nulls. INSERT fails
- This SQL Server has been optimized for x concurrent queries.
- SQL Compare comparison differences
- Using SQL Server Management Studio Express as a query editor
- How to force SQL Compare and SQL Data Compare to use an Encrypted Connection
- Invalid SQL when synchronizing an index to a scripts folder when data compression is specified
- Tips
- Changes to distribution of command line
- Common error messages
- Copying the structure of a database
- Permissions required to use SQL Compare
- Rollback on script failure or cancellation
- Errors in scripts folders
- Logging and log files
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
SQL Compare
- Activating your products
- Activating your products
- Getting help offline
- Release notes - version 9.5 EAP
- Introducing SQL Compare 8: FAQs for SQL Compare 7 users
- Release notes - version 10.xx
- SQL Compare release notes - version 9.xx
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

Using SQL Compare