G
Guest
I am trying to figure out how to construct a Connection statement for DB2 via
ODBC.
According to the "ConnectionStrings.com", it should have the following
information.
driver={IBM DB2 ODBC
DRIVER};Database=myDbName;hostname=myServerName;port=myPortNum;protocol=TCPIP; uid=myUserName; pwd=myPwd
I'm not sure what some of this information is. I am looking in the
"DB2CLI.INI" file, which is the only place I know of where connection
information is kept and I do not see anything which identifies port, protocol
(although I presume it is probably TCPIP). I see somthing which identifies
"Alias", which I am guessing is either Host Name or Database name. Is the
DB2CLI.ini the file that I should be looking at to gather this information.
If so, How do I find the the connection string information which is required?
Thanks in advance for your assistance!!!!
ODBC.
According to the "ConnectionStrings.com", it should have the following
information.
driver={IBM DB2 ODBC
DRIVER};Database=myDbName;hostname=myServerName;port=myPortNum;protocol=TCPIP; uid=myUserName; pwd=myPwd
I'm not sure what some of this information is. I am looking in the
"DB2CLI.INI" file, which is the only place I know of where connection
information is kept and I do not see anything which identifies port, protocol
(although I presume it is probably TCPIP). I see somthing which identifies
"Alias", which I am guessing is either Host Name or Database name. Is the
DB2CLI.ini the file that I should be looking at to gather this information.
If so, How do I find the the connection string information which is required?
Thanks in advance for your assistance!!!!