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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

3. Define the <strong>SQL</strong> <strong>Server</strong> instance, the appropriate security criteria, and each of the<br />

databases to which you want to connect.<br />

4. Click on the Options tab and enable Include views (so that the application-specific<br />

view is included as part of the comparison).<br />

5. Move to the Tables & Views tab. If the schema names are the same in each<br />

database, and the objects in each database match up, you can begin the comparison.<br />

If not, either:<br />

a. use the Object Mapping tab to manually map each object in the source to the<br />

appropriate object in the target, or<br />

b. use the Owner Mapping tab to map the two schemas.<br />

6. In the scheme suggested, the objects identified in the source are views, so they do not<br />

have primary keys and can't be compared. For any such objects, the term Not Set will<br />

appear in the Comparison Key column on the Tables & Views tab. Click on each Not<br />

set entry to choose the correct mapping key from the options that <strong>SQL</strong> Data Compare<br />

has identified.<br />

7. Run the data comparison for the selected objects.<br />

For the purposes of this chapter, the results of the comparison don't really matter.<br />

What does matter is the creation of the comparison project that is the result of the<br />

above process. The options settings, object mappings, the selection of custom comparison<br />

keys, and the results of all these processes, can be saved as a project. Once the project<br />

is saved it can be reused, not simply in the GUI, but also from a command line. The<br />

command line allows for automation of the deployment process. In addition to the<br />

command line, a full software development kit is also available to allow for integration<br />

into home-grown applications. Automation of deployments is one the key ingredients<br />

for team development. Taking into account the ability to map mismatched objects, it<br />

is possible to support multiple teams and multiple projects from a single authoritative<br />

source, and automate those deployments.<br />

92

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

Saved successfully!

Ooh no, something went wrong!