ODBC connection

cBarry263

Active member
Joined
Oct 29, 2005
Messages
42
Location
Maryland
Programming Experience
Beginner
I want to connect to a DB2 database with a traditional, already defined ODBC connection. I know that I could do something like this: "driver={IBM DB2 ODBC DRIVER};Database=myDbName;hostname=myServerName;port=myPortNum;protocol=TCPIP; uid=myUserName; pwd=myPwd".However I have been told not to do it this way, because all of this information (except the userName and passWord) is already provided in the ODBC connection setup (administrative tools -> ODBC). Does anyone know how to do this?
 
Back
Top