Can not connect to Oracle via VBA - Driver's SQLSetConnectAttr Failed

后端 未结 1 1139
轻奢々
轻奢々 2021-01-16 03:00

I have created an ODBC connection for oracle using \"Microsoft ODBC for Oracle\" driver under user DSN. I can connect to oracle 10g using SQL developer but when i try to con

相关标签:
1条回答
  • 2021-01-16 03:51

    Known issue - see IBM support post. Solution - use the Oracle driver.

    Also - connection strings are different between different database drivers. For example, a connection string for the Microsoft Oracle driver would look like

    Driver={Microsoft ODBC for Oracle};Server=myServerAddress;Uid=myUsername;Pwd=myPassword;
    

    while one for Oracle's own driver would be similar to

    Driver={Oracle in OraHome92};Dbq=myTNSServiceName;Uid=myUsername;Pwd=myPassword;
    

    Share and enjoy.

    0 讨论(0)
提交回复
热议问题