FireDAC.Phys.DB2.TFDPhysDB2DriverLink

From RAD Studio API Documentation
Jump to: navigation, search

FireDAC.Phys.ODBCBase.TFDPhysODBCBaseDriverLinkFireDAC.Phys.TFDPhysDriverLinkFireDAC.Stan.Intf.TFDComponentSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTFDPhysDB2DriverLink

Delphi

TFDPhysDB2DriverLink = class(TFDPhysODBCBaseDriverLink)

C++

class PASCALIMPLEMENTATION TFDPhysDB2DriverLink : public Firedac::Phys::Odbcbase::TFDPhysODBCBaseDriverLink

Properties

Type Visibility Source Unit Parent
class public
FireDAC.Phys.DB2.pas
FireDAC.Phys.DB2.hpp
FireDAC.Phys.DB2 FireDAC.Phys.DB2

Description

Use the TFDPhysDB2DriverLink component to link the IBM DB2 driver to an application and to set it up.

Use the TFDPhysDB2DriverLink component to link the IBM DB2 driver to an application. Generally, it is enough to include the FireDAC.Phys.DB2 unit in your application uses clause.

The TFDPhysDB2DriverLink component can be used to specify:

  • The ODBCDriver - the DB2 ODBC driver name.
  • The ODBCAdvanced - the DB2 ODBC driver connection parameter that is shared by all connections.
  • The VendorLib - the ODBC driver manager. By default, it is odbc32.dll and should remain unchanged in most cases.

All properties have default values appropriate for most cases. To produce an effect, you must either perform all property changes before the first connection through this driver or use the Release method.

Example

  FDPhysDB2DriverLink1.ODBCAdvanced := 'IGNOREWARNINGS=1';
  FDPhysDB2DriverLink1.ODBCDriver := 'IBM DB2 ODBC DRIVER - DB2COPY1';

See Also