MS Access database in Windows Server 2003 using classic ASP

谁说胖子不能爱 提交于 2019-12-13 00:57:53

问题


I'm migrating a classic ASP site from Windows Server 2003 to Windows Server 2008 R2. The problem is that the site are using a Microsoft Access database and using Microsoft.Jet.OLEDB.4.0 as provider.

I have search the Internet for a solution, but can't find any driver that work in 64 bit Windows. Is it any other provider that I can use to access the database?


回答1:


I found the solution

I changed the connections string to

"Driver={Microsoft Access Driver (*.mdb)};Dbq=c:\database.mdb;Uid=Admin;Pwd="

Then I enable 32 bits application. See http://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/using-classic-asp-with-microsoft-access-databases-on-iis




回答2:


For run ASP application on 64 bit machine

Please change the application pool which is using for this Website to Enable 32 bit = true (don't know the exact property name) in IIS



来源:https://stackoverflow.com/questions/15139036/ms-access-database-in-windows-server-2003-using-classic-asp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!