| Author |
Message |
dbdmora
Joined: 21 Nov 2011 Posts: 32 Location: Atlanta, GA
|
Posted: Wed Jun 13, 2012 7:21 pm Post subject: automate SQL Compare to run against several target servers |
|
|
What is the best way to automate SQL Compare to run against several target servers and put the differences it finds in either .HTML or xml format. I do not want to change the target servers but get a report on the difference first.
Thanks for any info. |
|
| Back to top |
|
 |
David Atkinson
Joined: 05 Dec 2005 Posts: 1079
|
Posted: Wed Jun 13, 2012 8:47 pm Post subject: |
|
|
Invoke the command line (assuming you have the pro version of SQL Compare).
Loop through your database target names using these switches:
sqlcompare.exe /s1:yoursourceserver /db1:yoursourcedatabase /s2:yourtargetdb /db2:yourtargetdb /reporttype:Interactive /report:yourreport.html /force
There are a number of different report types you can try. More info here:
http://www.red-gate.com/supportcenter/content/SQL_Compare/help/10.0/sc_cl_Switches_in_the_cl
David Atkinson
Red Gate |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group