oracle 如何查找连接字符串的 ODBC 驱动程序名称?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33254191/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to find the ODBC driver name for a connection string?
提问by TFD
Whenever I use ODBC drivers with a full connection string, and not just a DSN entry, I often get an error similar to this
每当我使用带有完整连接字符串而不只是 DSN 条目的 ODBC 驱动程序时,我经常会收到与此类似的错误
Data source name not found and no default driver specified
I have the correct syntax of the connection string (or so the Internet says), but I suspect I don't know the correct name for the current version of the ODBC driver I am using
我有正确的连接字符串语法(或者互联网上说的),但我怀疑我不知道我正在使用的 ODBC 驱动程序的当前版本的正确名称
How do I find the correct name, for either 32 or 64 bit?
如何找到 32 位或 64 位的正确名称?
回答by TFD
Use the ODBC Data Source Administrator app. Make sure you use the 32 bit or the 64 bit version depending on your applications build target. Then select the "File DSN" tab
使用 ODBC 数据源管理器应用程序。确保根据您的应用程序构建目标使用 32 位或 64 位版本。然后选择“文件 DSN”选项卡
Click the "Add" button, and select the driver you have installed
单击“添加”按钮,然后选择已安装的驱动程序
Then click the "Advanced" button
然后点击“高级”按钮
You can then copy and paste the correct driver name, and cancel out of the ODBC Data Source Administrator app
然后您可以复制并粘贴正确的驱动程序名称,并取消 ODBC 数据源管理器应用程序
e.g.
例如
DRIVER={PostgreSQL ODBC Driver(UNICODE)}
Add the rest of the parameters required, and you will have a working ODBC connection string for the currently installed version of the driver
添加所需的其余参数,您将拥有当前安装的驱动程序版本的有效 ODBC 连接字符串
e.g.
例如
Driver={PostgreSQL ODBC Driver(UNICODE)};Server=ruru.nz;Port=5432;Database=TheInternet;Uid=tfd;Pwd=p455w0rd;
Enjoy :-)
享受 :-)