Exportizer Users' Guide vlsoftware.net

Ways of Opening DB2 Databases

Contents Index Previous Next

1. Opening through ODBC DSN (interface: ADO or BDE). Select 'ODBC data source' option and then select the ODBC DSN from the dropdown list. But first, you should create an ODBC DSN of the corresponding type using Windows administrative tools, and point it to the database.

2. Opening through connection string (interface: ADO). Select 'Connection string' option and write a connection string. This way is the most flexible one because it allows to specify many additional parameters in the connection string and override standard Exportizer connection behaviour. But it is recommended basically for advanced users. Here are basic connection strings (more examples and details can be found in the Internet):

Provider=DB2OLEDB;Network Transport Library=TCPIP;Network Address=xxx.xxx.xxx.xxx;Initial Catalog=MyCatalog;Package Collection=MyPkgCol;Default Schema=mySchema;User ID=myUsername;Password=myPassword;   (Microsoft OLE DB Provider for DB2 must be installed)

Provider=IBMDADB2;Database=myDatabase;Hostname=myServerAddress;Protocol=TCPIP;Port=50000;Uid=myUsername;Pwd=myPassword;   (IBM OLE DB Provider for DB2 must be installed)

Driver={IBM DB2 ODBC DRIVER};Database=myDbName;Hostname=myServerAddress;Port=myPortNum;Protocol=TCPIP;Uid=myUserName;Pwd=myPwd   (IBM DB2 Driver for ODBC must be installed)

DB2 client must be installed.
This database type is supported only in Exportizer Pro.

See also

 Connection Strings Examples