calpolymis1
MIS
Hi. I've been strugling with this for days. I've created DAPs which are hosted in a hosting company's server, and they work fine when I set database connection to my local computer.
But when I set connectionString to "\\lumbergu\ I think is the correct path) in MS Script editor, it gives the error that it cannot open the database.
Following is the connection string suggestion by the hosting company:
<%
Dim DBPath,objRS,objConn
'----------------------------------------------------
'DO NOT MODIFY ABOVE THIS LINE
'----------------------------------------------------
' Change the path below to the actual location of your mdb file
DBPath="/db/file.mdb"
'----------------------------------------------------
'DO NOT MODIFY BELOW THIS LINE
'----------------------------------------------------
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.ConnectionString="Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.mappath(DBPath)
objConn.Open
Set objRS=Server.CreateObject("ADODB.Recordset")
%>
I'm not much familiar with database connection strings, and now I'm desperate to get some help. Thanks in advance.
But when I set connectionString to "\\lumbergu\ I think is the correct path) in MS Script editor, it gives the error that it cannot open the database.
Following is the connection string suggestion by the hosting company:
<%
Dim DBPath,objRS,objConn
'----------------------------------------------------
'DO NOT MODIFY ABOVE THIS LINE
'----------------------------------------------------
' Change the path below to the actual location of your mdb file
DBPath="/db/file.mdb"
'----------------------------------------------------
'DO NOT MODIFY BELOW THIS LINE
'----------------------------------------------------
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.ConnectionString="Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.mappath(DBPath)
objConn.Open
Set objRS=Server.CreateObject("ADODB.Recordset")
%>
I'm not much familiar with database connection strings, and now I'm desperate to get some help. Thanks in advance.