This topic describes how to generate data using the built-in Data Generator tool.
Note
Before generating test data, you should back up the database you’re going to populate.
If you’re not satisfied with the results, you can adjust the settings and repeat the data generation.
1. On the menu bar, go to Database > Tasks > New Data Generation. The Data Generator Project Properties dialog opens.
2. On the Connection tab, choose the connection and database for data generation, and then click Next.
Note
If you want to create a new connection, click Manage in the Connection dropdown list. In the Connection Manager dialog that opens, click New to add a new connection. For more information, see Managing connections.
3. On the Options tab, set the data generation options:
Under Row distribution mode:
If you don’t want the selected table to be truncated, clear the Truncate data from table before generation checkbox.
Under Value distribution mode:
Under Column properties:
4. Click Open to open the data generation project.
5. In the .dgen document that opens, do the following:
Note
You can get errors during data generation—for example, if you include a column which is the foreign key of a table you didn’t include into generation. To resolve such issues, click the table in question, locate the Related tables section of the Table generation settings pane, and include or exclude parent and child tables from data generation.
6. Click Populate data to the target database. The Data Population Wizard opens.
7. On the Output tab, select one of the following options and then click Next:
8. On the Options tab, select general data population options and then click Next.
Note
You can click the name of an option to view its detailed description.
In the Search box, you can start typing the option name. The options matching your search will be highlighted.
To save the options you’ve set for later use, click Save As My Defaults.
To use the default settings of the tool, click Devart Defaults.
To use the options you saved earlier, click My Defaults.
9. On the Additional Scripts tab, if needed, enter or select the script to be executed before or after data population, and then click Next.
10. On the Summary tab, view the generation action plan and the details of generation errors and warnings, if any, that inform you when there may be a problem with the data generation.
11. Click Generate to finish the process.