Using SQL Compare from the command line help
gsuttie
Posts: 80
Hi There
I need some help to compare the scripts folder with a database on our server from a batch file running on my local pc.
So far I have this:-
cd "C:\Program Files\Red Gate\SQL Compare 8" sqlcompare.exe /scr1:"C:\SVNWORK\<projetc name>\trunk\Database"
/server:<server name>\SQL2005 /db2:Quartet200 /o:Default /Report:"C:\SchemaDiffReport.html" /ReportType:Interactive
/ScriptFile:"C:\SchemaSyncScript.sql" /sync
I need some help to compare the scripts folder with a database on our server from a batch file running on my local pc.
So far I have this:-
cd "C:\Program Files\Red Gate\SQL Compare 8" sqlcompare.exe /scr1:"C:\SVNWORK\<projetc name>\trunk\Database"
/server:<server name>\SQL2005 /db2:Quartet200 /o:Default /Report:"C:\SchemaDiffReport.html" /ReportType:Interactive
/ScriptFile:"C:\SchemaSyncScript.sql" /sync
Comments
Also, you should specify the server as /server2 so it knows which "side" of the comparison it relates to.
Redgate Software