Welcome to WebmasterWorld Guest from 22.214.171.124 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
ASP, Access & LDB Locked File Server hangs for ever Chris_H
I'm having problems with our new ISP, who can't seem to resolve a hanged server when my ASP page tries to connect to an Access database.
An LDB locked file is produced by Access on the server once the page connects to the database (using a Jet DSNless connection), which didn't happen with our old ISP. This locks everyone else out, and the server hangs, making our site inaccessible:
conn.Open "Data Source=" & Server.Mappath("/path-to-data.mdb") & ";Provider=Microsoft.Jet.OLEDB.4.0;"
I've pulled out clumps of hair over the last 72 hours trying to sort this out. If anyone can help me to keep the remaining strands of hair, I'd be very grateful.
Does the Internet Guest Account (IUSR_Something) have appropriate rights to the directory containing the database? Chris_H
CHMOD is 777 in that directory. I assume this is the right settings? txbakers
Don't use access for web work. Access is fine for a desktop app, but not the constant open and close of the web.
use mySql or mssql instead.
Don't use access for web work
Actually, in my experience, using Access is just fine for light to medium loads... But when you start getting a heavy load, you should certainly consider something like MS SQL Server!
Its normal for the .ldb file to be locked when the database is open.
Sounds like the conenction isnt being released properly - are you closing the recordset before releasing it? What error message do you get?
Access has many problems in a hosted environment and the locked file syndrome is one of the more common.
Because Microsoft MSDE is free for both hosting companies and end-users, there really is no reason to not use a real database (MSDE) instead of the file-based MS Access.
If your hosting company can't support MSDE, and you don't want to upgrade to a full SQL Server account, then go somewhere else.
All medium to large (but not small) Microsoft technology hosting companies support database hosting as it is the foundation for ASP, ASP.NET, SharePoint and most of the Microsoft Server stack.
Access, in my ISP environment, perfectly support concurrent connections...