Visual Studio 2017 Data Comparison, command line
Asked Answered
B

1

9

I'm using this function in Visual Studio to easily sync data from one database to another

https://msdn.microsoft.com/en-us/library/aa833428(v=vs.100).aspx

You can save the Data Compare settings into a .dcmp file. Everytime I open the .dcmp file, it runs a comparison and I can press the update button to write data to DEV.

But how can I run this automatically? Is there a command line to run the .dcmp file?

Bombay answered 25/6, 2017 at 7:32 Comment(0)
F
5

Visual Studio 2017

There is the Tools.NewDataComparison command.

Visual Studio 2012-2015 (?)

You have the Sql.NewDataComparison command. Look here.

Visual Studio 2010

You have the Data.NewDataComparison command, run it from devenv.
Create a batch file if you need to automate this.
More on NewDataComparison command here and here.

Felt answered 3/7, 2017 at 11:49 Comment(2)
Yea I saw those. Those links are 7 years old for version 2010.Bombay
Note: added 2017 info. Yes, they renamed it again.Warfield

© 2022 - 2024 — McMap. All rights reserved.