且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

odbc连接字符串在Windows 7上不起作用

更新时间:2023-11-05 14:44:10

不是64位Win7和32位应用程序吗?

Isn't it 64 bit Win7 and 32 bit application?

如果是这样,则必须在32位Windows子系统中配置ODBC DSN。 Windows的64位版本中有2个版本的 odbcad32.exe 。在 c:\windows\system32 中,您会发现在64位应用程序和 c:\windows\syswow64中配置ODBC的64位。 您应该使用32位版本来为32位程序配置ODBC。

If so you must configure ODBC DSN in 32 bit Windows subsystem. There are 2 version of odbcad32.exe in 64 bit versions of Windows. In c:\windows\system32 you will find 64 bit that configure ODBC for 64 bit applications and in c:\windows\syswow64 there is 32 bit version you should use to configure ODBC for 32 bit programs.