简体   繁体   中英

ODBC connection in Windows Server 2008 R2

In Windows Server 2008 R2 not showing Microsoft ODBC for Oracle 64 bit.

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:

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

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. If your desired driver is 64-bit, you need to use c:\\windows\\system32\\odbcad32.exe .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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