Excluding tables from difference script (command line)
Excluding tables from difference script (command line)
Hello, I have a question regarding schema compare for MS SQL Server.
Is it possible to exclude some tables from comparison process or from generated synchronization script while doing it through command line?
Thanks
Is it possible to exclude some tables from comparison process or from generated synchronization script while doing it through command line?
Thanks
We plan to add the "Include objects by mask" and "Exclude objects by mask" options in the next version. With the help of these options you will be able to specify the objects that should be excluded from comparison (mapping) and the objects that should be forcibly included into comparison using regular expressions. That means you will be able to do this visually and without hacking XML file.
To run Schema Compare via command line in Scheduled Task, you should specify complete paths to the files. If there are spaces in names, you should write them in quotes.ivan wrote:By the way Does anybody know why schemacompare.com cant be run with ant task or directly with java spawn command?
To make working with command line more comfortable, you can create a *.bat file with the run command, and then open this file to run the program via command line. For example, you can insert the following line to the run.bat file:
Code: Select all
"D:\Program Files\Devart\dbForge Schema Compare for SQL Server\schemacompare.com" /schemacompare /compfile:"D:\Program Files\Devart\dbForge Schema Compare for SQL Server\sc.scomp" /report:"D:\Program Files\Devart\dbForge Schema Compare for SQL Server\schemacompare.html"