0

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?

CodeGrue
  • 5,865
  • 6
  • 44
  • 62

1 Answers1

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