SQL Source Control 3

Linking to a custom setup

When link to a custom setup, you specify a config file to automate source control operations. Preset config files are provided for:

  • Git
  • Mercurial
  • Perforce
  • Plastic SCM

The preset config files work well for most setups. However, if you want to use your own config file, create the file before you link.

For more information about how to create your own config file, see Working with config files.

To link to a custom setup

  1. Create an empty folder in your source control repository. This will be the working folder you link to.
  2. In the Object Explorer, select the database you want to link to source control.
  3. In SQL Source Control, on the Setup tab, make sure Link to my source control system is selected and click Link to source control:

    The Link Database to Source Control dialog box opens.
  4. On the left, select Custom:

  5. Enter the location of the working folder.

  6. Select the config file for your source control system.

  7. If you're linking to a database that will be used by multiple developers, make sure Shared database is selected. For more information, see Database development models

  8. Click Link.
    The database is linked to source control. The database icon in the Object Explorer changes to show that the database is linked:

If you're the first person to link this database, add the database objects to source control. To do this, go to the Commit changes tab and commit the objects.

If you linked a database that's already in source control, update your database to the latest version. To do this, go to the Get latest tab and get the changes.


Didn't find what you were looking for?