问题
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