How to surmount the folder connection database
How does ASP let in the sub-folder’s document connect in the female folder’s database, is in folder A has the database, folder B is a sub-folder, folder D is the B sub-folder, the folder D document <%
Dim cn
Set cn = Server.CreateObject (“ADODB.Connection”)
cn.Open “DRIVER= {Microsoft Access Driver (*.mdb)}; ” & _
“DBQ= ” &Server.MapPath (“A/B/D/Lily.mdb”)
%> could not connect in a Lily.mdb database, the prawn helps, was deeply grateful under… Question supplement:It is not good, thanks
That must think where you do contain this code the ASP document to place
For example places A/B/D/
Then
Dim cn
Set cn = Server.CreateObject (“ADODB.Connection”)
cn.Open “DRIVER= {Microsoft Access Driver (*.mdb)}; ” & _
“DBQ= ” &Server.MapPath (”./././Lily.mdb “)
If D or B already were the website root directory are not possibly good
Leave a Reply
You must be logged in to post a comment.