Groups | Blog | Home
all groups > inetserver asp db > june 2006 >

inetserver asp db : Help with Microsoft JET Database Engine error '80040e4d'


jmev7
6/12/2006 4:29:43 PM
I know why this is happening to me. It's due to a database password on an MS
Access file. I can put code in each page that calls the database and
redirect the user to the log in page, but I was wondering if I could trap
this error and cause it to be dealt with as I would a 404 error. Is there
any universal way to trap this error?

Thanks

Bob Barrows [MVP]
6/12/2006 6:09:33 PM
[quoted text, click to view]
One way would be to use an include file that performs the database
connection.
Another would be to use a custom error page:
http://www.aspfaq.com/show.asp?id=2335
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

jmev7
6/12/2006 7:08:37 PM
Thanks Bob. I have used the include to manage the connection, or actually to
redirect the viewer to the login page when the session variable was not yet
set. I just hate to do this on each and every page I'm working on.

Thanks.


[quoted text, click to view]

AddThis Social Bookmark Button