Connection strings for AS/400 (IBM iSeries)

IBM DB2 for i .NET data provider

Type .NET Framework Class Library
Usage
Manufacturer IBM

Standard

DataSource=myServerAddress;UserID=myUsername;Password=myPassword;DataCompression=True;
 
 

IBM Client Access OLE DB provider

Type OLE DB Provider
Usage Provider=IBMDA400
Manufacturer IBM

Standard

Provider=IBMDA400;Data Source=MY_SYSTEM_NAME;User Id=myUsername;Password=myPassword;

Where MY_SYSTEM_NAME is the name given to the system connection in OperationsNavigator

 
 

Specifying cellection

Provider=IBMDA400;Data Source=MY_SYSTEM_NAME;User Id=myUsername;Password=myPassword;
Default Collection=MY_LIBRARY;

Where MY_SYSTEM_NAME is the name given to the System Connection, and MY_LIBRARY is the name given to the library in iSeries Navigator.

 
 

.NET Framework Data Provider for OLE DB

Type .NET Framework Wrapper Class Library
Usage System.Data.OleDb.OleDbConnection
Manufacturer Microsoft

Use an OLE DB provider from .NET

Provider=any oledb provider's name;OledbKey1=someValue;OledbKey2=someValue;

See the respective OLEDB provider's connection strings options. The .net OleDbConnection will just pass on the connection string to the specified OLEDB provider. Read more here.

 
 

IBM Client Access ODBC driver

Type ODBC Driver
Usage Driver={Client Access ODBC Driver (32-bit)}
Manufacturer IBM

Standard

Driver={Client Access ODBC Driver (32-bit)};System=my_system_name;Uid=myUsername;
Pwd=myPassword;
 
 

Variant

Try this if you encounter a "runtime error 3000; reserved error (-7778); there is no message for this error" message.

Driver={Client Access ODBC Driver (32-bit)};System=my_system_name;Uid=myUsername;
Pwd=myPassword;MGDSN=0;
 
 

IBM iSeries Access ODBC driver

Type ODBC Driver
Usage Driver={iSeries Access ODBC Driver}
Manufacturer IBM

Standard

This driver is newer than the one above.

Driver={iSeries Access ODBC Driver};System=my_system_name;Uid=myUsername;Pwd=myPassword;
 
 

Variant

Try this if you encounter a "runtime error 3000; reserved error (-7778); there is no message for this error" message.

Driver={iSeries Access ODBC Driver};System=my_system_name;Uid=myUsername;Pwd=myPassword;
MGDSN=0;
 
 

.NET Framework Data Provider for ODBC

Type .NET Framework Wrapper Class Library
Usage System.Data.Odbc.OdbcConnection
Manufacturer Microsoft

Use an ODBC driver from .NET

Driver={any odbc driver's name};OdbcKey1=someValue;OdbcKey2=someValue;

See the respective ODBC driver's connection strings options. The .net OdbcConnection will just pass on the connection string to the specified ODBC driver. Read more here.

 
 

Popular