SQL Data Compare 5   

Selecting Single Tables for Comparison

See Also

This example illustrates how you select a single table for comparison.

In this example, the databases contain the following tables (amongst others):

You are interested only in the differences between the Product tables in two different versions of your database; you are not interested in any of the other tables, or any views in the databases.

Using the command line

To specify the table to include, you use the /include switch:

SQLDataCompare /db1:Products1 /db2:Products2 /include:table

               /include:table:\[Product\] /verbose

where:

Using XML

You can use XML as follows:

<?xml version="1.0"?>
<commandline>
    <database1>Products1</database1>
    <database2>Products2</database2>
    <verbose/>
    <include>Table</include>
    <include>Table:\[Product\]</include>
</commandline>

To execute the comparison using the XML file, enter the following command:

SQLDataCompare /argfile:xmlfilename.xml

where xmlfilename is the name of the XML file.

 

 

 


© Red Gate Software Ltd 2007. All Rights Reserved.