SQL Source Control - 2.2
Learning SQL Source Control - 2.2
Source controlling data
SQL Source Control lets you source control your static (lookup/reference) data. Static data is the non-transactional data an application may depend on. It typically does not change frequently; an example would be a table of US states.
To source control data, first link it to source control, then commit it.
Linking associates a table's data with source control, and means that subsequent data changes are detected, and static data can be shared across the team.
To source control a table's data:
- In the Object Explorer, right-click the database or table with data you want to source control.
- Select Other SQL Source Control Tasks, then click Link/Unlink Static Data
- The Link/Unlink Static Data dialog box is displayed:

You can see a list of the tables in the database and select the ones you want to link to source control.
Note that you can only source control data in tables with a valid primary key.
The primary key is used as the comparison key to identify corresponding rows.
- Select the tables you want to link and click Save and close
A file for the table's data has now been created, but the data itself has not yet been committed. To commit the data, commit the resulting Data Link change on the Commit Changes tab.
- On the Commit Changes tab, ensure all Data Link changes are selected, optionally type a comment, and click Commit

The data is committed to source control.
Note that committing and getting the latest version of data can be slow. It is therefore recommended only to source control static (lookup) data.
See also |
Was this article helpful?
SQL Source Control
- Setting SQL Compare options within SQL Source Control
- "ICredentialsProvider is unset, therefore can't get" error occurring within SQL Source Control
- Linking fails due to SVN pre-commit hooks
- Logging changes to shared databases
- Object changed by Unknown
- Setting permissions for SQL Source Control
- Using SQL Source Control with Team Foundation Server 2012 or tfspreview.com
- Error: Failed to resolve no-ops after 5 tries
- Using SQL Compare or SQL Changeset scripts with SQL Source Control
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 Source Control
- Database development models
- Release notes - version 1.0
- Release notes - version 1.1
- Release notes - version 2.0
- Release notes - version 2.1
- Release notes - version 2.2
- Requirements & prerequisites
- Technical Overview
- Release notes - version 3.0
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

Step by step examples