AnyDAC
ContentsIndexHome
PreviousUpNext
TADPhysDB2DriverLink Class

Use the TADPhysDB2DriverLink component to link the IBM DB2 driver to an application and setup it.

Group
Class Hierarchy
uADPhysDB2_TADPhysDB2DriverLinkuADPhysDB2_TADPhysDB2DriverLinkuADPhysDB2_TADPhysDB2DriverLink
File

uADPhysDB2

Links

Use the TADPhysDB2DriverLink component to link the IBM DB2 driver to an application. In general it is enough to only include uADPhysDB2 unit into your application uses clause. 

The TADPhysDB2DriverLink component may be used to specify:

  • ODBCDriver - DB2 ODBC driver name;
  • ODBCAdvanced - DB2 ODBC driver connection parameter common for all connections;
  • VendorLib - ODBC driver manager. By default it is odbc32.dll and for most cases should remain unchanged.

All properties have default values appropriate for most case. To have an effect all property changes must be performed before first connection through this driver or use the Release method.

TADPhysDB2DriverLink = class(TADPhysODBCBaseDriverLink);
ADPhysDB2DriverLink1.ODBCAdvanced := 'IGNOREWARNINGS=1';
ADPhysDB2DriverLink1.ODBCDriver := 'IBM DB2 ODBC DRIVER - DB2COPY1';
What do you think about this topic? Send feedback!