0

我们的服务器上有一个 PHP 脚本,它生成一个批处理文件,该文件设置为在任务计划程序中的特定时间运行。批处理文件调用一个 vbs 文件,该文件通过 ODBC 联系多台计算机以检索数据并将其插入我们的 MySQL 数据库中。这已经好几个星期了,但是今天我收到了这个错误消息:

用于 ODBC 驱动程序的 Microsoft OLE DB 提供程序:[Microsoft][ODBC Driver Manager] 指定的 DSN 包含驱动程序和应用程序之间的体系结构不匹配

我不知道这个错误是什么意思或如何解决它。请帮忙,谢谢!!

4

1 回答 1

2

This question has been asked many times on stackoverflow so try searching for architecture mismatch. You are attempting to mix a 32 bit application with a 64 bit ODBC driver or vice versa. See 64-bit ODBC and Why do I get error "The specified DSN contains an architecture mismatch between the Driver and Application"?. You need to create a DSN using the right ODBC Driver Manager i.e., the 32 bit one or the 64 bit one depending on the architecture of your application. The 32 bit ODBC driver manager is located at %windir%\syswow64\odbcad32.exe

于 2013-05-02T06:46:02.223 回答