IDalODBCConnectionDescriptor

Assembly: Dal;

Description

The IDalODBCConnectionDescriptor interface contains properties that are used to set up additional connection parameters using ODBC driver.

Inheritance Hierarchy

IDalODBCConnectionDescriptor

Comments

The following classes can be used to connect using ODBC drivers that must be installed in the operating system:

For connection parameters:

  1. Create a driver instance using one of the above specified classes. Cast the obtained instance to the IDalDriver interface.

  2. Create a connection description and cast it to the IDalODBCConnectionDescriptor interface.

  3. Set values of parameters that are used to create a connection string, using the ODBCParams or ODBCParamValue property. The list of parameters depends on the ODBC driver in use. The detailed list can be obtained on the website of corresponding DBMS developer. If a custom DSN for connection is already created in the operating system, set it as a value of the DSN parameter.

  4. Create a connection using the IDalConnectionDescriptor.CreateConnection method.

  Property name Brief description
ODBCParamCount The ODBCParamCount property returns the number of parameters, for which values are determined.
ODBCParamName The ODBCParamName property returns parameter name with the specified index.
ODBCParams The ODBCParams property determines a string of additional parameters values.
ODBCParamValue The ODBCParamValue property determines a value for parameter with the specified name.

See also:

Dal Assembly Interfaces