Visual Studio 2010 Data Compare Automation

☆樱花仙子☆ 提交于 2019-12-22 07:53:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!