SQL Source Control

Latest version: 3.1

SQL Source Control

Knowledge base

Linking fails due to SVN pre-commit hooks

Date: 15/06/2011
Product: SQL Source Control

If you have Subversion pre-commit hooks that require a comment, or that require a comment of a particular format, linking a database for the first time may fail.

This occurs because the first time a database is linked, SQL Source Control adds a folder structure and some accompanying metadata to source control, and the default comment may not be appropriate.

If your pre-commit hooks prevent you linking a database within SQL Source Control, you can create the initial link manually.

To create an initial link:

  1. Using your source control client (for example TortoiseSVN) create a new, empty folder in your repository.

    This will be the folder that contains the database. The URL for the folder location is used to link the database in SQL Source Control.

  2. Download this .zip file containing the folder structure and metadata.
  3. Unzip the .zip file, and commit the contents to source control in the folder you created.

    When you commit, supply an appropriate comment.

  4. In SQL Source Control link the database

Was this article helpful?

Search support
Forums

SQL Source Control

all SQL products

all products