Product Home
DTM Data Generation SDK Online Documentation
Product Profile
SDK components
Functions map
Low level API
Short Random
Integer Random
Random Symbol
Double Random
Random String
Random Date
Random Time
C/C++ example
Fill Methods level API
From list
From file
From table
From Values Library
Incremental
By maks
By SQL statement
Rule level API
Rule properties
Rule items
One rule item
Project level API
Project operations
Project properties
Project rules
Object handles
Database connection
Error handling
SDK limitations
Build application with SDK
License agreement

From table fill method

This fill method allows the user to generate data based on database table's column.

Table Initialization
C/C++
DG_HANDLE InitTable(DG_HANDLE connection, char *table, char *column)

C#/VBA/scripts
int InitTable(int connection, string table, string column)
'connection' is a handle returned by ConnectDB function.
'table' - table name
'column' - column name
Important: you should pass quoted string for tables like "Order Details" to this function. Please use native quotation symbols of your database system.

Generate value
C/C++
char* TableValue(DG_HANDLE handle, int sequentially)

C#/VBA/scripts
string TableValue(int handle, int sequentially)
Not 0 'sequentially' value means the function will return values from the table sequentially, random otherwise.

Note: this fill method not supported by core SDK version.