Command-line switches

This topic provides a detailed description of command-line switches and examples of how to use them.

Command-line usage

To view the list of switches for /generatedata, type the following command:

dbforgesql.com /generatedata /?

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 Server

As part of the dbForge Edge bundle

C:\Program Files\Devart\dbForge Edge\dbForge Studio for SQL Server

The first argument for /generatedata is usually an operation switch that specifies which action you want the application to perform.

Available command-line switches

Name Description
/connection Specifies the connection string.
Usage: /connection:<connection_string>
/errormode Specifies the application behavior when encountering an error:
  • ignore – Ignores all errors and continues script execution.
  • abort – Cancels script execution if an error occurs.

Usage: /errormode:<ignore|abort>
/exitcodes Displays the list of exit codes that can be returned by the command-line process.
Usage: /exitcodes
/password Specifies the server password and overrides the values from the /connection switch.
Usage: /password:<pw>
/projectfile Specifies a data generation template file (.dgen) to use.
Usage: /projectfile:<file_path>
/treatwarningaserror Specifies the behavior for treating warnings:
  • Yes – Treats all warnings as errors, and the subsequent behavior will be determined by the errormode option.
  • No – Ignores warnings and continues executing the command-line script.
    Usage: /treatWarningAsError:[Yes|No]