Comments
4 comments
-
Hello Matt,
Yes, you can choose the tables to synchronize using the Toolkit. If you look at the sample code for SQL Compare, there is a bit that loops through all of the differences and sets their Selected property to True. This is how you select objects to be scripted. You could include a conditional statement (an if) somewhere in this loop to include objects by name or by type. -
Thanks for the reply,
that did it.
Matt Barnes
Barnestorm, Inc. -
Hi,
It's probably the 'includedependencies' SQL Option that's scripting dependent objects. You can try taking that option out of the Options enumeration rather than using Options.Default, but that may cause the script to fail, depending. -
Hello @ geometry dash meltdown, you can achieve this programmatically using the SQL Compare and Data Compare Toolkit in VB.NET. The key is to configure the comparison options and filter the tables before generating the synchronization script. With the Data Compare API, you can select which tables to include in the comparison by using table mappings or comparison filters. This allows you to synchronize only the tables you specify rather than the entire database.
Add comment
Please sign in to leave a comment.
Matt Barnes
Barnestorm, Inc.