求問VC 2010 mfc 程序 用ADO對象連接DB2數據庫 connectstring 到底該怎麼寫呀
試了網上好幾種方式都連接不上
IBM提供的OLE DB適配器
TCP/IP
Provider=IBMDADB2;Database=myDataBase; Hostname=myServerAddress; Protocol=TCPIP;Port=50000; Uid=myUsername;Pwd=myPassword;
ODBC
標准
Driver={IBM DB2 ODBC DRIVER}; Database=myDataBase;Hostname=myServerAddress; Port=1234;Protocol=TCPIP;Uid=myUsername;Pwd=myPassword;