How to use IBM DB2 Driver for ODBC and CLI

In this article I will explain how to use IBM DB2 Driver for ODBC and CLI.
  • 2200
Standard for IBM DB2 Driver for ODBC and CLI

ODBC driver and CLI provides the access of SQL to the database. In fact applications developed by it can access any data by database management system. To use them in your program use the following connection string

Driver={IBM DB2 ODBC DRIVER};Database=User_Database;Hostname=SpecifiedServerAddress;Port=1234; Protocol=TCPIP;Uid=Username;Pwd=User_password;

Encapsulating IBM DB2 Driver for ODBC and CLI

The command given below encapsulates the OdbcConnection class that calls the ODBC driver. To use IBM ODBC driver in your program use the following connection string

Driver={IBM DB2 ODBC DRIVER};Database=User_Database;Hostname=SpecifiedServerAddress;Port=1234; Protocol=TCPIP;Uid=Username;Pwd=User_password;
 
Further Readings

You may also want to read these related articles.

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.