Update cookies preferences
Promotic

Examples of Firebird database usage

FireBird database in the PmaTrendGroup object

- When creating the object from Preconfiguration "PmaTrendGroup - Trend group" the "Storage type" configurator set to: Database FireBird cyclic.
- In a newly created PmaTrendGroup object, on the "Storage" tab, the "Storage type" configurator set to: Database FireBird cyclic.
The trend values can be defined on the "Data" tab or in the ExtTrend of the PmaData object.
If the database files do not exist, then these will be created on first application launch, when calling the Run method (or the RunTime method) of the PmaTrendGroup object. Or automatically by checking the "Automatic saving after launch is enabled" configurator on the "Trend" tab.

FireBird database in the PmaDatabase object

- When creating the object from Preconfiguration "PmaDatabase - Database", select: ODBC; Data source.
- In a newly created PmaDatabase object, on the "Database" tab, set the configurators: Technology, Database (file, folder, data source), Table (file), etc.

FireBird database in the PmaAdo object

- When creating the object from Preconfiguration "PmaAdo - ADO database", select the database type: FireBird and in the "Database connection parameters" configurator select: ODBC - Named ODBC data source.
- In the "Database connection parameters" configurator it is necessary to modify the name of ODBC source (eventually user name and password).
The PmaAdo object is created, containing the DtiOper method on the "Methods" tab. This method represents the basic inteface for working with database tables and can be used, for example, by the Preconfiguration "Panel with editable table viewer of data source" viewer.

The interface uses the ADO technology that can be extended by additional functionality:
Example:
Creates new table data with columns nTime (time, primary key, must not be NULL), 'flags' (integer, must not be NULL) and 'value1' (real number, must not be NULL).
JavaScriptVBScriptSelect and copy to clipboard

pMe.DbExecute("", "CREATE TABLE data (nTime TIMESTAMP PRIMARY KEY NOT NULL, flags SMALLINT NOT NULL, value1 FLOAT NOT NULL)", "");
PROMOTIC 9.0.29 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
 
- Examples of Firebird database usage
 
 
© MICROSYS, spol. s r.o.