Online Documentation for Data Generator for SQL Server
Using console application
All the generation options are set in template (*.gtm) files. A template can be also used in the Console version of Data Generator for SQL Server .
To create a template file, follow the instructions below:
- start Data Generator for SQL Server Wizard Application;
- set all the required options in all steps of the wizard;
- test the generation process at the last step;
- save all generation options in the template file.
The easiest way to start Data Generator for SQL Server console application is to double-click the generated *.gtm template file. The other way is to enter the command line and type the appropriate command.
<path to Data Generator for SQL Server console application>\MsDataGenC.exe TemplateFile [-L] [-B]
Stands for the *.gtm template file to be used as the console version execution parameter
Use this parameter in the command line to run the console version of Data Generator for SQL Server in background mode
"C:\Program Files\EMS\Data Generator for SQL Server\MsDataGenC.exe" "C:\EMS\Templates\DataGenerator\Example.gtm" -L
Note: The following exit codes can be returned by Data Generator for SQL Server to the operating system after performing the latest task:
0 - successful completion;
1 - error(s) occurred during task performing;
2 - fatal error occurred. The task was not performed.