ODBC driver for Windows
The ODBC client package works with Windows as a 32-bit and 64-bit driver.
Downloading and configuring
- 64 bit
-
DSClients-ntx64-dsdriver-... IBM Data Server Driver Package (Windows/x86-64 64 bit) ...
- 32-bit
-
DSClients-nt32-dsdriver-... IBM Data Server Driver Package (Windows/x86-32 32 bit) ...
ODBC driver directory structure
- ..\bin
- Contains the DLL files for the application.
- ..\lib
- Contains the runtime library file.
- ..\cfg
- Contains the odbc.ini configuration file.
- ..\include
- Contains the header files that are used to compile client applications.
- sql_dsn.vbs
- This script updates the registries with any additional DSN information in the odbc.ini file configuration information. For any DSN information added to the odbc.ini file, run the sql_dsn.vbs script file as an administrator from a Windows command line to register the added DSN information.
ODBC driver configuration
The configuration information for the ODBC driver is specified in the db2dsdriver.cfg file. For more information about the Data Server driver package, see Validating IBM Data Server Driver Package (Windows) installation.
Edit the db2dsdriver.cfg file
to provide the required DSN
alias and database
information.
Client application configuration
A client application must provide the DSN name to the ODBC driver.
If the client application does not need to be compiled first, the name is provided in the external data source configuration of the client application. These applications generally contain user-friendly interfaces and can be configured by using the interface of the application.
SQLConnect
SQLDriverConnect
These functions are useful for
applications that have no user interface. In these cases, the application
must reference the header file that is included in the following
ODBC directory, ..\include.Removing the ODBC driver and DSN entries
To remove the ODBC driver, run Windows Start -> All Programs -> IBM -> IBM Db2 Big SQL ODBC driverUninstall IBM Db2 Big SQL ODBC Driver.
- Deleting the relevant DSN entries under ODBC->ODBC.INI.
- Deleting the relevant DSN names under ODBC->ODBC.INI->ODBC Data Sources.
Then, edit the db2cli.ini file to remove relevant DSN entries from it.