SQL Data Compare - 10.0
Setting data sources - SQL Data Compare
When you create a new comparison project, SQL Data 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:
- Databases
Any database you can connect to on a SQL Server.
- Backups
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 Data Compare Professional edition.
- Scripts folders
Scripts folders created using either SQL Data Compare or SQL Compare professional edition.
You can compare any combination of data source types in your project.
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 Data Compare to remember your password, select the Save password check box.
- In the Database box, type or select the name of the 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 Data 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. |
For more information, see Working with backups
Selecting a scripts folder
- Under Source or Target, select Scripts Folder.
In the Scripts Folder box, select the folder, or click
to browse to the folder.
You can use a scripts folder as a data source only if it contains a database schema. You can create scripts folders using SQL Compare, and use SQL Data Compare to update them with static data. Alternatively, you can create a scripts folder using SQL Data Compare.
To create schema scripts in a folder using SQL Data Compare:
- On the Data Sources tab of the Project Configuration dialog box, select a database, backup, or existing valid scripts folder as the source.
- Under Target, select Scripts folder.
- In the Scripts folder box, Browse to or select the folder you want to use.
If the folder does not contain valid scripts folder metadata, the option to create schema scripts is enabled.
- Click Create Schema Scripts.
The Create New Scripts Folder dialog box is displayed:

To update the target scripts folder with data from the source, perform the comparison, select the rows you want to include, and then synchronize.
For more information, see Working with scripts folders
See also |
Was this article helpful?
SQL Data Compare
- Logging and log files
- Internal Connection Fatal Error in versions 4 and 5
- NULL textptr passed to UPDATETEXT function when running synchronization
- How much free hard disk space is required?
- Comparing the data of two tables in the same database
- Suggestions to combat comparison and synchronization performance issues
- SQL comparison and synchronization automation capabilities
- SqlNullValueException occurring in synchronization wizard
- SQL Data Compare command-line XML argument file examples
- Using Windows authentication logons between domains
- Using a filter on a column on related (joined) tables
- Determining minimum database permissions for SQL Data Compare
- Tables with compound keys may not be mapped automatically
- Best practices for synchronizing data
- Cleaning up a SQL script after SQL Compare or SQL Data Compare
- Troubleshooting System.OutOfMemoryException during comparison
- Exception thrown by db reader 1
- Reseed applying "incorrect" identity values
- Running migration scripts using SqlCmd.exe
- This SQL Server has been optimized for x concurrent queries.
- SQL Data Compare showing differences in 2 identical databases
- How to force SQL Compare and SQL Data Compare to use an Encrypted Connection
- Improving the performance of SQL Data Compare
- Logging and log files
- Case-sensitive comparisons
- Tables or views that could not be compared
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 Data Compare
- Activating your products
- Activating your products
- Getting help offline
- Getting better performance out of SQL Data Compare
- Release notes - version 10.xx
- SQL Data Compare release notes - version 7.xx
- SQL Data Compare release notes - version 8xx
- SQL Data 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 Data Compare