简体   繁体   English

Windows Server 2008 R2中的ODBC连接

[英]ODBC connection in Windows Server 2008 R2

In Windows Server 2008 R2 not showing Microsoft ODBC for Oracle 64 bit. 在Windows Server 2008 R2中,未显示Microsoft ODBC for Oracle 64位。

I made a connection string. 我做了一个连接字符串。 Go to C:\\Windows\\SysWOW64\\odbcad32.exe and add username and server and select Microsoft Odbc for Oracle but When I run my application it shows: 转到C:\\Windows\\SysWOW64\\odbcad32.exe并添加用户名和服务器,然后选择Microsoft Odbc for Oracle,但是当我运行我的应用程序时,它显示:

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified 错误[IM002] [Microsoft] [ODBC驱动程序管理器]找不到数据源名称,并且未指定默认驱动程序

My connection string is following: 我的连接字符串如下:

<connectionStrings>
<add name="conct" connectionString="DSN=mydb;UID=123;PWD=334"/>
</connectionStrings>

How I remove this error and How I check which one wrong my connection string or driver not found? 如何删除此错误,以及如何检查找不到连接字符串或驱动程序的哪个错误?

C:\\Windows\\SysWOW64\\odbcad32.exe is used for accessing 32-bit ODBC drivers on Windows x64. C:\\Windows\\SysWOW64\\odbcad32.exe用于访问Windows x64上的32位ODBC驱动程序。 If your desired driver is 64-bit, you need to use c:\\windows\\system32\\odbcad32.exe . 如果所需的驱动程序是64位,则需要使用c:\\windows\\system32\\odbcad32.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM