Connect to an Oracle 10g database with Microsoft ODBC for Oracle

后端 未结 3 774
余生分开走
余生分开走 2020-12-18 09:49

I\'m trying to connect to an Oracle 10g database using the built in Microsoft ODBC for Oracle driver. I want to use an dnsless connection, so I grab my connection string fr

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 10:06

    I'm not sure how kosher it is to answer your own question, but I found a connection string that is more what I'm looking for:

    "Driver={Microsoft ODBC for Oracle}; " & _
                                     "CONNECTSTRING=(DESCRIPTION=" & _
                                     "(ADDRESS=(PROTOCOL=TCP)" & _
                                     "(HOST=myserver)(PORT=1521))" & _
                                     "(CONNECT_DATA=(SERVICE_NAME=servicename))); " & _
                                     "uid=username;pwd=password;
    

提交回复
热议问题