hr = pConnection->Open("Driver={IBM DB2 ODBC Driver}; protocol=tcpip;
hostname= <hostname>; database=<database>; servicename=50000;",
_bstr_t("<username>"), _bstr_t("<password>"), -1);
But this string need protocol name, hostname and service name. Does anybody
know a simpler string in case that the db2 database has been cataloged but
odbc data source has not cataloged.
Thanks a lot
Mike
The connection string can be
"Driver={IBM DB2 ODBC Driver}; dbalias = <database alias name>;"
Please refer to DB2 UDB manual "Call level Interface Guide and Reference"
for more key words and details.
"Mike Gong" <mike...@rogers.com> wrote in message
news:QnPO8.353136$t8_.3...@news01.bloor.is.net.cable.rogers.com...