SQL Source Control - 3.1
Migrating the evaluation repository - SQL Source Control
If you have been using an evaluation repository, or any local SVN repository, you can migrate it to a Subversion server, and retain all the log/history information.
You can migrate the repository by using VisualSVN Server, an installation and administration application for Subversion on Microsoft Windows servers.
VisualSVN Server is available both as a free tool (the Standard Edition), and as the paid Enterprise Edition. The Enterprise Edition includes Integrated Windows Authentication, as well as richer logging and administration tools.
This example uses the free version of VisualSVN Server.
The example has three steps:
- Download and install VisualSVN Server
- Import your evaluation repository
- Unlink and relink the repository in SQL Source Control
1. Download and install VisualSVN Server
To set up your SVN server, download and run the VisualSVN Server installer on your server, then follow the wizard to complete the installation.
For information on installing VisualSVN Server, see Setting up a Subversion server
You can download the VisualSVN Server installer here
2. Import your evaluation repository
To import the contents of an evaluation repository to your new SVN server, you must find the evaluation repository, copy the files to your server, and then import them using VisualSVN.
- First, locate the evaluation repository on your computer.
The evaluation repository location is typically: C:\Users\<user name>\AppData\Local\Red Gate\SQL Source Control 2\EvaluationRepositories
Alternatively, to find your repository location:
Open SQL Server Management Studio if it is not already open. In the Object Explorer, select the database you want to import, and on the Setup tab of SQL Source Control, where it says Linked to, right-click the red text and click Copy:

The repository location is copied to the clipboard.
- Browse to the repository location, and copy the repository you want to move to a location on your server.
- On the server, open the VisualSVN Server Manager if it is not already open, and in the Console Tree pane, to the left, right-click Repositories, select All Tasks, and click Import Existing Repository:

The Import Existing Repository dialog box is displayed:

- In Existing Repository Location, paste the location of the repository copy.
A new repository name is supplied automatically. If you do not want to use the default name, type a new one.
- Click OK.
The repository is created. The new repository contains any history information from the evaluation repository.
3. Unlink and relink the repository in SQL Source Control
To start using the new repository with SQL Source Control, unlink the evaluation repository and link the new one:
- In the VisualSVN Server Manager, right-click the new repository, and click Copy URL to Clipboard
- In SQL Server Management Studio, ensure the database is selected in the Object Explorer, and on the Setup tab of SQL Source Control, click Unlink database
A dialog box is displayed asking you to confirm the unlink.
- Click Yes
The database is unlinked.
- On the Setup tab, click Link database to source control
The Link to Source Control dialog box is displayed.
- In Repository URL, paste the URL of your new repository.
- Under Development Model, select your development model: dedicated, or shared.
- Click Link
The database is now linked to the new repository on your Subversion Server.
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