$595

($744 including support & upgrades)

  • Download 14-day free trial
  • Create a quote for SQL Comparison SDK
  • Add SQL Comparison SDK to shopping cart
SQL Comparison SDK box shot

SQL Comparison SDK

Walk-through: Using Red Gate APIs

This walk-through will show you:

  • Using the SQL Compare API to automate comparison and synchronization tasks
  • Features in the SQL Comparison SDK
  • Building your application
Stop walk-through

Step 8: Run the script

The next thing to do is to run the script. SQL Compare provides a helper class to do this:

Utils u=new Utils();

u.ExecuteBlock(b, ".", "WidgetProduction");

The last part of the coding is to dispose of the objects we have used:

b.Dispose();
db1.Dispose();
db2.Dispose();

We do this so SQL Compare can free up any resources, such as temporary files, that it might have used.