问题
I noticed in premium edition Data menu with Data Compare option which does everything I need. Just wondering whether there is a way to automate what's done in GUI from my application. Ideally I'd like to get collections of different/left/right rows
回答1:
In this blog I’ll lead you through the various parameters for the “Data.NewDataComparison” ...
http://blogs.msdn.com/b/psirr/archive/2008/11/22/data-compare-dte-commands.aspx
回答2:
Start here with VSDBCMD.EXE. Then see Schema Compare DTE Commands.
I suspect something like
devenv /Command Data.NewSchemaComparison [/ProviderType ConnectionBased | ProjectBased | FileBased] [/ConnectionString connection] | [/DatabaseName databaseName] | [/ConnectionName name] | [ProjectName proj] | [/FileName fileName] [/DspFamily family][ProviderType ConnectionBased | ProjectBased | FileBased] [/ConnectionString connection] | [/DatabaseName databaseName] | [/ConnectionName name] | [ProjectName proj] | [/FileName fileName] [/DspFamily family]
I'm hoping that there is a similar command for Data Compare.
来源:https://stackoverflow.com/questions/2779538/visual-studio-2010-data-compare-automation