Cruachan
Cruachan

Reputation: 15971

Access and classic ASP error 80004005 System resource exceeded

An old site on shared hosting has developed an error when executing a simple SQL statement

Microsoft JET Database Engine error '80004005'

System resource exceeded.

/411971/users1.asp, line 68 

Line 68 is Set objCon = objCommand.Execute

The Access database isn't large (less than 2Mb), this is a single table query and the table only contains around 500 records. Field count is only about 20 too with no memo fields. Nothing has changed in the script. A compact/repair on the database has no effect, as does creating a new database and copying the table in question too it.

Looking round in the web this would appear to be most likely a web server issue rather than the code (and the behaviour would indicate this too) but I'm not finding anything conclusive - and knowing how shared hosting support works I'd like to have a definitive case before I go to them. Has anyone else seen this error/behaviour before and what was the problem/solution.

OUTCOME: I made sure I'd tried all the obvious approaches then emailed the ISP support who confirmed it was a server issue and restarted services, which fixed the problem

Upvotes: 2

Views: 4434

Answers (2)

Emad
Emad

Reputation: 1

If the issue happens again, just ask your hosting provider to recycle the application pool on IIS.

Upvotes: 0

bobince
bobince

Reputation: 536379

It may simply be a connection limit. On shared hosting with other sites using the same backend the limits are easily hit. Whilst you can help by making sure you explicitly close any connections after your script has used them, in the end this would be a hosting issue your provider would need to look at.

This is probably not what you want to hear, but Access/Jet is an unsuitable database backend for a web application. I got hangs and inexplicable errors like this from it with just a couple of concurrent users. When MySQL and SQL Server Express are free there is no reason to use Access on the web.

Upvotes: 2

Related Questions