This topic gives a detailed description of command-line switches and examples of their usage.
To get more information on switches related to schema comparison in the command line, run the following command:
dbforgesql /schemacompare /?
Note
To run dbForge Studio CLI commands, open Command Prompt and navigate to the folder that contains
dbforgesql.com. The default path to this executable depends on where dbForge Studio for SQL Server is installed. If you installed dbForge Studio:As a standalone tool
C:\Program Files\Devart\dbForge Studio for SQL ServerAs part of the dbForge Edge bundle
C:\Program Files\Devart\dbForge Edge\dbForge Studio for SQL Server
| Name | Description |
|---|---|
/backup |
Creates a backup of the target database before synchronization. If the backup directory is not specified, the default server backup directory is used. Usage: /backup[:dir] |
/compfile |
Loads command-line settings from the comparison project file (.scomp). Usage: /compfile:<path> |
/exitcodes |
Displays the list of exit codes that can be returned by the command-line process. Usage: /exitcodes |
/filter |
Applies a custom filter to include or exclude objects from comparison./filter:<filepath> |
/IncludeObjects |
Specifies the objects to be included into report:
|
/log |
Generates a comparison log file in the specified directory. Usage: /log:<filepath> |
/options |
Specifies the values for comparison or synchronization options. Usage: /{option}:[value] |
/report |
Generates a schema comparison report file. If the output file name has an .html, .xls or .xml extension, the file format is selected automatically. Usage: /report:<filepath> |
/reportformat |
Specifies the format of the file comparison report. Available options:
If no format is specified, the report format is determined by the file extension. Usage: /reportformat:<HTML|XLS|XML|XMLFOREXCEL> |
/ScriptDiffsStyle |
Specifies the style of displaying script differences in the comparison report. Available options:
Usage: /ScriptDiffsStyle:<removeadd|cross> |
/source |
Specifies the source for comparison by using one of the following options:
|
/sync |
Performs schema synchronization from the command line. If you specify an output file for synchronization, only synchronization script is generated. Usage: /sync[:filepath] |
/target |
Specifies the target for comparison by using one of the following options:
|
Note
To build the command-line syntax, use the command-line wizard.