Update cookies preferences
Promotic

Preconfiguration "Database access - connecting to the database by the PmaAdo object and table usage."

connecting to the database by the PmaAdo object and table usage.

This preconfiguration can be activated when creating a new object (e.g. by "New object ..." in the context menu of the object or by pressing the Insert key after selecting the object) and is included in the group: "/ Database access".
This preconfiguration can be created in the object: PmaFolder or PmaRoot.

The PmaAdo object is created including the configured interface for selected database type. The connection string is also preconfigured in the DbConnectionString property for connection to selected database. This will need to be modified in some cases to meet the requirements for connection to the database on the target computer.

The panel is preconfigured in order to allow creation of testing table (datatest) with primary key in the cindex column. The SQL statement for table creation is included in the PmgString object in field DbExecute and is activated by the "Run the SQL statement" button. The INSERT INTO button can be used for adding new record into the database table. The values of new record are generated randomly (in the Values field) by the button with "arrow in a circle" symbol. The buttons UPDATE and DELETE can modify the record or delete it. The button with "arrow in a circle" symbol in this case displays the value that is in the marked row of the table in cindex column. There is an info system in the bottom of the panel that indicates the result of performed operations.

These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the Pma objects tree.
The maximum name length is 30 characters.
This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and the first character must not be a number.
Default: "DbDti"
Type of the database being connected
dBase
Microsoft Access
Microsoft SQL Server
Oracle
MySQL
Firebird
PostgreSQL
Database connection parametersDatabase connection parameters by the DbOpen method in the form of ADO ConnectionString text string. The ADO ConnectionString (http://www.connectionstrings.com) contains all necessary parameters needed by the ADO Connection object for database connection via the selected ADO Provider. The typical parameters are represented for example by connection provider (provider), server address (server), database name (database), login name and password (uid, pwd), etc. The parameter list and exact syntax is defined by the corresponding ADO Provider, parameters may differ by individual ADO Providers. However for the sake of compatibility most providers ADO Provider understand multiple names of the main parameters simultaneously (e.g. the database name can be represented by database, data source, dbq, etc.). Caution: The syntax of this string is different than other strings used in the PROMOTIC system, the value and the name are separated by =, not by "colon" (:). Entries with assigned value are separated by a semicolon, for example "provider=SQLOLEDB;server=.\SQLEXPRESS;database=pm_data;uid=pm_admin;pwd=pmadmin;".
This configurator sets the initial value of the DbConnectionString property.
Macro expression can be used for input (it is evaluated after the application is launched).
Values can be edited manually, or can be created by the button on the right, that opens the window for Database connection parameters (connection string).
The defined parameters may not always be valid (for most common cases), it depends on the selected ADO Provider.
After the preconfiguration is created, the "PmaAdo > ADO > Database connection parameters" configurator will be set to this value.
Enable as Web componentSpecifies whether this object has to be registered as a Web server component
After the preconfiguration is created, the "PmaPanel > Web server > Enable as Web component" configurator will be set to this value.
PmaWeb objectPath in the Pma objects tree to the object PmaWeb, PmaWebFolder or PmaWebLang where the registration is carried out.
Macro expression can be used for input (it is evaluated after the application is launched).
After the preconfiguration is created, the "PmaPanel > Web server > PmaWeb object" configurator will be set to this value.
DbTypeDbType

History:
Pm8.03.24: Created
PROMOTIC 9.0.28 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
 
- Database access - connecting to the database by the PmaAdo object and table usage.
 
 
© MICROSYS, spol. s r.o.