mcrmg
asked on
DB Connection Problem
Hi,
I have an web application using ASP and Access.
This is my DB connection string:
filePath = Server.MapPath("database/d emo.mdb")
Set oConn = Server.CreateObject("ADODB .Connectio n")
oConn.Open "Provider=Microsoft.Jet.OL EDB.4.0;Da ta Source=" & filePath
and this is the string that I close the connection when user log out:
oConn.close
My question is, why .ldb alway presents? Thanks.
I have an web application using ASP and Access.
This is my DB connection string:
filePath = Server.MapPath("database/d
Set oConn = Server.CreateObject("ADODB
oConn.Open "Provider=Microsoft.Jet.OL
and this is the string that I close the connection when user log out:
oConn.close
My question is, why .ldb alway presents? Thanks.
Either your opening the connection more than once, and not closing ALL connections, OR your never getting to the oConn. The .ldb definitely disappears if done correctly.
Hi mcrmg,
Because the DB is opened by your ADO...
Mattis
Because the DB is opened by your ADO...
Mattis
because you have the database opened as an application? The .lbd is there is something has opened it, that includes a desktop application. Maybe your collegue has it opened and went home?
ASKER
It is strange, that on my lcoal IIS, I never seen the ldb file, only when I oprn db in access. But when I move this to server, ldb files created when I logged on..
Have you checked to see your security status for the access file?
Enable IUSR<computername> to have full control over the access files
See if it helps!
Enable IUSR<computername> to have full control over the access files
See if it helps!
ASKER
Hi,
I set permission for certain user, before user get in to the application, they will have to enter username and password that I set up on server.
I set permission for certain user, before user get in to the application, they will have to enter username and password that I set up on server.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I will post back....thanks