I need to perform a data compare operation to refresh a dev database froma sample data database prior to running integration tests using the VS test harness. Anyone know a way to automatically configure this?
Asked
Active
Viewed 307 times
1 Answers
1
You need the MSBUILD Schema and Data Compare Tasks
from here
MSBuild /t:SqlDataCompareTask
/p:SourceConnectionString=”ValidConnectionString1”
/p:SourceDatabaseName=”DatabaseName1”
/P:TargetConnectionString=”ValidConnectionString2”
/p:TargetDatabaseName=”DatabaseName2”
/p:OutputPath=”FullPathForDataCompareReults”
/p:OutputFilename=”FilenameForDataCompareResults”

Preet Sangha
- 64,563
- 18
- 145
- 216
-
1MSBuild asks for a .proj file when you run this.. Any idea why? – CodeGrue Jul 05 '11 at 19:29
-
Yes this is a command line execution of MSBUILD. You need to specify the msbuild project : `MSBuild.exe [Switches] [ProjectFile]` – Preet Sangha Jul 08 '11 at 04:26