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.

Figure 3-2: Part of the folder structure created by VSTS:DB.<br />

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

Using one of these methods, you convert your database into a set of scripts. Once you<br />

have a set of scripts, you need to add them to a source control system in order to manage<br />

sharing the database objects between multiple developers and DBAs.<br />

SSMS<br />

In the absence of any third-party tools, and if PowerShell scripting is not an option, basic<br />

scripting functionality is available in SSMS. Just right-click on your database and select<br />

Tasks | Generate Scripts… and you'll enter the Generate <strong>SQL</strong> <strong>Server</strong> Scripts Wizard.<br />

There are a whole series of options that allow you to control the objects that get scripted<br />

and the scripting options used for each object, or you can simply shortcut the whole<br />

process and script out every object in the database. On the Output Options screen, you<br />

87

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

Saved successfully!

Ooh no, something went wrong!