57.6. Schema Compare

This tool will allow you to compare schemas between databases or Database Projects. To use it, select New Comparison from the Data Schema Compare menu. You will have to select a project or database as Source and a project or database as Target. When you do that you will be presented with a window similar to the one shown in Figure 57-7. The lower pane will show both versions of the selected object with the changes highlighted. It's handy to use the filters from the Toolbar; by default all objects will be shown. I recommend selecting Non Skip Objects to see only the differences.

Figure 57.7. Figure 57-7

For each DB object you can see the action that will be applied Then from the toolbar you can either select Write Updates to apply all the changes or Export to Editor to get the SQL statements used for the update in case you need to do manual changes or hand it out to your DBA.

To customize the options for Schema Comparisons, go to Tools Options and to the Schema Compare node under Database Tools. By default, "Block Schema updates if data loss might occur" is selected; this is recommended but can cause some updates to fail. You can uncheck this option, but be sure you're running on a test database and that you can regenerate the data. Such other options as Ignore White Space can be useful to reduce unnecessary changes.

Remember that if you are using a Database Project the deploy option will write the changes from your Database Project to the database selected in the build option in the project's properties. This tool can be useful to see the changes or do manual tweaking.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.236.70