Welcome to WebmasterWorld Guest from 54.144.243.34

Forum Moderators: open

ASP, Access & LDB Locked File

Server hangs for ever

   
8:42 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



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.

Chris

9:28 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



Does the Internet Guest Account (IUSR_Something) have appropriate rights to the directory containing the database?
9:44 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



CHMOD is 777 in that directory. I assume this is the right settings?
12:29 am on Aug 31, 2005 (gmt 0)

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

1:20 pm on Aug 31, 2005 (gmt 0)

10+ Year Member



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!

3:09 pm on Aug 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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?

9:10 pm on Sep 11, 2005 (gmt 0)

5+ Year Member



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.

2:28 pm on Sep 16, 2005 (gmt 0)

10+ Year Member



Access, in my ISP environment, perfectly support concurrent connections...
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month