Connection strings for IBM DB2
.NET libraries for IBM DB2
- DB2 .NET Data Provider - DB2Connection
- .NET Framework Data Provider for OLE DB - OleDbConnection
- .NET Framework Data Provider for ODBC - OdbcConnection
OLE DB providers for IBM DB2
ODBC drivers for IBM DB2
DB2 .NET Data Provider
Usage IBM.Data.DB2.DB2Connection
Manufacturer IBM
Standard
The Server key value syntax is a server name / ip address and an optional port number (note the : in between).
Defining the connection pooling pool size
Disable connection pooling
Connection pooling, time in pool
Defines how many seconds the connection can remain idle in the pool before its removed from the pool.
Connection pooling, do not pool
Specifying schema
All unqualified SQL objects used with the current connection will be qualified with the provided schema name
Microsoft OLEDB provider for DB2
Usage Provider=DB2OLEDB
Manufacturer Microsoft
TCP/IP
APPC
IBM OLE DB Provider for DB2
Usage Provider=IBMDADB2
Manufacturer IBM
TCP/IP
.NET Framework Data Provider for OLE DB
Usage System.Data.OleDb.OleDbConnection
Manufacturer Microsoft
Use an OLE DB provider from .NET
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 DB2 Driver for ODBC and CLI
Usage Driver={IBM DB2 ODBC DRIVER}
Manufacturer IBM
Standard
Database Alias
Try this dbalias alternative if the database keyword does not work.
Specifying schema
Using this you can use "select from myTable" instead of "select from mySchema.myTable"
.NET Framework Data Provider for ODBC
Usage System.Data.Odbc.OdbcConnection
Manufacturer Microsoft
Use an ODBC driver from .NET
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.