How to generate data from the command line

Last modified: March 28, 2025

You can automate data generation using the command line.

  1. Click Start, type ‘cmd’ in the Search programs and files text box, and press ENTER. The Command Prompt opens.
  2. Specify the operation you want to perform and the required parameters and arguments (actions you want to run) in the Command Prompt, for example as follows:
dbforgesql.com /generatedata [/switch1[:value | [parameter1:value parameter2:value ..]] /switch2 ..]\
  1. Press ENTER to run the process.

Select corresponding command line switches to perform the required operations:

Argument Action and Usage
/connection This switch is used to specify a connection string. The command line looks like: /connection:<connection_string>
/errormode This switch is used to specify the application behavior when an error is encountered. To ignore all errors during the data population, specify: ignore. To cancel the data population if any error occurs, specify: abort. The command line looks like: /errormode:<ignore|abort>
/password This switch is used to specify a password. It overrides the password specified in the connection string. The command line looks like: /password:<pw>
/projectfile This switch is used to specify data generation template to use. Some project options can be overridden by switches. The command line looks like: /projectfile: <path>