Ways of Opening DB2 Databases

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 BDE alias (interface: BDE). First, you should create the alias of type DB2 using BDE Administrator tool or Tools | BDE | Aliases menu of Reportizer, and point it to the database.

3. 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 Reportizer 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)

Notes
DB2 client must be installed.

See also

 Examples of ADO Connection Strings