Comparing database schemas

You can use Sybase Central to compare the schema of two databases.

Prerequisites

There are no prerequisites for this task.

Context and remarks

When comparing databases, objects are not matched by object ID but by name, name and owner, or a combination of names and owners.

 Compare database schemas
  1. In Sybase Central, use the SQL Anywhere 12 plug-in to connect to the two databases you want to compare.

  2. Click Tools » SQL Anywhere 12 » Compare Databases.

    The Compare Databases window appears.

  3. Ensure that the two databases you want to compare are specified in the Database 1 and Database 2 fields.

  4. Click Compare.

    The Objects tab lists the summary of the differences between the databases.

  5. Click an item on the Objects tab to view the SQL statements for the object. A red background indicates SQL for objects that exist in Database 1 only, a green background for objects that exist in Database 2 only, and a blue background for objects that exist in both databases.

Results

The databases are compared.

Next

Optionally, if you want to convert the schema of Database 1 to match the schema of Database 2, the SQL statements necessary for the conversion appear on the SQL Script tab.

 See also