You can only link to working folders in SQL Source Control 3.4 and later.

A working folder contains SQL script files that represent your database. The working folder can be source-controlled with your source control system in the same way you source-control other files.

When you link to a working folder, SQL Source Control doesn't automate any source control operations (eg add, push, edit etc). Instead:

If you want to do atomic commits of your database schema together with your application code, you can do this by linking to a working folder. For more information, see Example - source-controlling database schema and application code together using a working folder.

To link to a working folder

  1. Create an empty folder in your source control repository. This will be the working folder you link to.
  2. In the Link to source control dialog box, in the left pane, select Git or Mercurial. For other source control systems, select Working folder.
  3. Specify the location of the working folder you created in step 1.
  4. If you're linking to a database that will be used by multiple developers, make sure This is a shared database is selected.
    For more information, see Database development models.

  5. Click Link.

The database is linked to the working folder.