Running saved comparison process using command line parameter is very simple. The only parameter needed to pass is Comparison Id - all other parameters of given comparison were already defined with the GUI at the time of recording comparison (so that you do not need dozens of command line switches).
Command line parameter has following syntax:
where n indicates Id of saved comparison process.
To get the Id of given comparison process:
click menu item File -> Run Saved Comparison Process (or press keys Ctrl + F5) to display the list of all saved comparison processes
select given comparison process and right-click it
read the Id of the process from the pop-up Properties screen.
Here is an example of command line parameter:
C:\Program Files\SQL Server Comparison Tool\sct.exe /RunSavedComp 4
- C:\Program Files\SQL Server Comparison Tool\sct.exe is a path to executable file of SCT
- 4 represents the Id of the comparison process to be run
Program can be run with command line parameters in several ways, one of them is as follows:
click Windows "Run..." menu item (displayed after clicking "Start" button)
enter the full path of SCT (or drag and drop file "sct.exe" from Windows Explorer to "Run" dialog)
enter space after the path, followed by the text "/RunSavedComp n" (without quotation marks, "n" should be replaced with actual process Id)