sync and generate scripts for selected rows of a table
jubayer92
Posts: 4
I was trying to mimic what SQL Comparer does - sync and generate scripts for selected rows for a table.
In my UI, I am displaying all rows for a compared tables and would like to sync and generate scripts for selected rows.
How I can accomplish this? Any help is appreciated.
thanks.
In my UI, I am displaying all rows for a compared tables and would like to sync and generate scripts for selected rows.
How I can accomplish this? Any help is appreciated.
thanks.
Comments
SQL Toolkit supports this via a delegate function called SelectionDelegate. To hook this function into Data Compare Engine, you can specify the delegate function as a parameter to the SqlProvider.GetMigrationSQL method, and you can write the logic that decides whether or not an individual update, insert, or delete query will be included in the synchronization script. If your delegate function returns TRUE, the individual record will be included in the script.