How can we help you today? How can we help you today?

Command-line compare using project file

I have a large and complex data compare project. Is there a way to use this project file directly from the command-line, or do I need to create a functionally identical XML file for this purpose?

Thanks,

Dan
Dan Guzman
0

Comments

4 comments

  • Rob C
    Hi Dan,

    You can use your project file from the command line by using the /Project switch and doing something similar to the following...
    sqldatacompare.exe /Project:"C:SQLCompareProjectsWidgets.scp"
    
    Rob C
    0
  • Dan Guzman
    I guess it's time for new eyeglasses. I looked through the documentation and somehow missed that switch.

    Thanks,

    Dan
    Dan Guzman
    0
  • mtm_king
    I know I need glasses because I cannot figure out where sql script file goes.

    I know /Export will create a csv file, but in the above example where is sql script file that will do the synchronizing?

    Thanks
    mtm_king
    0
  • Mike U
    sqldatacompare.exe /?
    
    will describe the command line syntax. You can add /verbose for more detail.

    To generate a SQL synchronization script, use
    sqldatacompare.exe /scriptfile:<destination_file_path>
    

    Or to actually run the synchronization, use
    sqldatacompare.exe /synchronize
    

    Obviously you'll need to combine these arguments with the project file or source and target database arguments.
    Mike U
    0

Add comment

Please sign in to leave a comment.