Standard using DB2Connection

Connection string

This DB2 .NET Data Provider connection string can be used for connections to IBM DB2.

Server=myAddress:myPortNumber;Database=myDataBase;UID=myUsername;PWD=myPassword;

The Server key value syntax is a server name / ip address and an optional port number (note the : in between).