Applies to
ApexSQL Source Control
Summary
This article explains how to link a database to the source control repository using the ApexSQL Source Control wizard
Description
Using ApexSQL Source Control SSMS add-in, developers can link a database to the source control repository via the add-in wizard, directly from SQL Server Management Studio.
To link a database:
The Source control setup wizard consists of three steps:
System selection
ApexSQL Source Control allows using any of the supported source control systems:
Working folder feature can also be used to link database to any folder in the file system. This feature is convenient for e.g. evaluating purposes or linking the database to local repository folder created by third party source control client.
One of the two standard development models must be specified for working with the source control systems:
|
Quick tip: When you link a database on which multiple developers will work at the same time, Shared database model is suggested |
Object filtering
This step provides possibility to exclude objects not to be linked to source control. It is possible to exclude specific object, exclude objects by owner or type. Learn more
System login
Connecting to a source control repository, requires appropriate login information to be provided as well as some additional information specific to the chosen source control system.
Here’s how login forms and the repository string specific to each source control system look like:
Git
The Repository path form:
<protocol>://<hostname>:<portnumber>/<Git server name>/<repository>
|
Quick tip: When connecting to a Git, Mercurial or Subversion repository hosted in the local machine file system, the following form of the repository path is advised: |
Mercurial
The Repository path form:
<protocol>://<hostname>:<portnumber>/<repository>
Perforce
The Repository path form:
<protocol>://<hostname>:<portnumber>
Subversion
The Repository path form:
<protocol>://<hostname>:<portnumber>/svn/<repository>/
Team Foundation Server / Visual Studio Online
The meaning of the fields:
|
Quick tip: When connecting to Visual Studio Online, use the alternate authentication credentials password created under user profile options. |
After the database is linked, you can initially commit all objects to the repository from Action center. The database object status will be refreshed and shown as linked via the appropriate icon:
FAQs
Q: What if I’m using other team project collection on VSO (not the Default Collection), should I include it in the repository path?
A: Yes, you should use it instead of the Default Collection, so the repository path will be:
https://<acountname>.visualstudio.com/<custom collection>
Q: Can I use a third party source control client like TortoiseSVN together with ApexSQL Source Control?
A: Yes. It can be done by using the Working Folder feature which enables the user to script database changes using ApexSQL Source Control and to use any third party client to commit changes to the repository.
Q: Do you plan to include support for any other source control systems?
A: Yes. From ApexSQL Source Control 2016 R1 user will have the ability to use any source control system that supports the Command Line Interface.
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. 使用条款 隐私 Cookie Preference Center