30.06.2013 Views

SQL Server Team-based Development - Red Gate Software

SQL Server Team-based Development - Red Gate Software

SQL Server Team-based Development - Red Gate Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3: Change Management and Source Control<br />

process, so that the source control versions or labels are automatically applied to the<br />

values on the extended property.<br />

Optimistic versus pessimistic source control<br />

There are a couple of prevailing models for managing code within source control. The<br />

older method, used by tools such as Microsoft VSS, is a pessimistic process, wherein the<br />

developer takes an exclusive lock on the code in question through a process known as a<br />

check-out. While a piece of code is checked out, other developers can read the code, but<br />

they cannot edit it themselves. When the original developer is done, the code is checked<br />

back in to VSS and is now available for other developers to use.<br />

Most developers prefer a more flexible, optimistic approach to source control, as offered<br />

by modern source control systems, such as Subversion or Microsoft's <strong>Team</strong> Foundation<br />

<strong>Server</strong>. Instead of an exclusive lock, a developer just retrieves a copy of the code and<br />

begins to edit. Other developers are free to also start working with the same code. When<br />

any developer is done with the work, the code is merged back into source control and<br />

committed. This allows for more than one developer to work on any given piece of code,<br />

but still manage the changes so that no one's work is inadvertently overwritten and lost.<br />

Source control systems<br />

There are source control systems available from a large number of vendors, as well as<br />

several open source options. The two source control systems currently supported by <strong>Red</strong><br />

<strong>Gate</strong> <strong>SQL</strong> Source Control are Microsoft's <strong>Team</strong> Foundation <strong>Server</strong> (TFS) and the open<br />

source Subversion (SVN). Microsoft still has Visual SourceSafe (VSS) available, but that is<br />

being retired and will no longer be supported.<br />

73

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!