PowerDesigner can generate sample data to your database tables to verify performance or to help in estimating the amount of memory that the database will require. You can generate test data for some or all of the tables in your PDM to an empty or existing database.
Option | Description |
---|---|
Directory |
Specifies the directory in which the file will be saved. |
File name |
Specifies the name of the test data file to generate. Select the One file only checkbox to specify that a single file should be generated. |
Generation type |
Specifies how the test data will be generated:
|
Commit mode |
Specifies when the data will be committed:
|
Data file format |
Specifies the format when generating a data file:
|
Delete old data |
Deletes existing data before generating new data. |
Check model |
Checks the PDM before generating the test database or script, and stops generation if an error is found. |
Automatic archive |
Creates an archive of any previous test data. |
Default number of rows |
Specifies the default number of rows to generate for tables. This number can be overrridden for individual tables on the Number of Rows tab. |
Default number/ character/ date profile |
Specifies the default test data profiles (see Populating Columns with Test Data) to use to generate data. We recommend that you create test data profiles to accurately model your data and associate them with each of your columns and domains as appropriate, but if you have not done so, then these default profiles are used. |
Option |
Result of selection |
---|---|
Owner prefix |
Specifies that an owner prefix is added. |
Titles |
Specifies that each section of the script includes commentary in the form of titles. |
Encoding |
Specifies the encoding format to use for test data generation. You should select the encoding format that supports the language used in your model and the database encoding format. |
Character case |
Specifies the character case to use. The following settings are available:
|
No accent |
Non-accented characters replace accented characters in script. |
If you are generating test data to a live database connection, then the Connect to a Data Source dialog box opens. Select a data source, and then click Connect. If you are generating a test data script, then a Result dialog box asks you if you want to Edit or Close the newly generated file.
A message in the Output window indicates that the test data generation is completed.