重新安装ODBC,步骤如下:
用odbcconf.exe来重新注册一下ODBC Driver。
在Windows/System32目录下有几个脚本文件,可以来完成驱动程序的注册:
odbcconf.exe /S /Lv odbcconf.log /F %systemroot%\system32\mdaccore.rsp
odbcconf.exe /S /Lv odbcconf.log /F %systemroot%\system32\sqlclnt.rsp
odbcconf.exe /S /Lv odbcconf.log /F %systemroot%\system32\odbcconf.rsp
odbcconf.exe /S /Lv odbcconf.log /F %systemroot%\system32\redist.rsp
再运行程序,OK.