i do use always this type of connection on LOCAL win server
strProvider="DSN=access_1"
set objConn = server.createobject("ADODB.Connection")
objConn.Open strProvider
Set rst = Server.CreateObject("ADODB.recordset")
strQuery="select ..."
rst.Open strQuery, strProvider
i start using REMOTE host (win)
where an another type of connection has been used
dsn_name = "access_1"
sDSNDir = Server.MapPath("/_dsn")
connectstr = "filedsn=" & sDSNDir & "\" & dsn_name
Set oConn = Server.CreateObject("ADODB.Connection")
qry = "SELECT ... "
Set oRS = oConn.Execute(qry)
i can't change a way i have to connect to DB on REMOTE host
i want to make identical the connections on both hosts, so it will be easy to share scripts, etc.
so i need to switch to a second type of connection on my LOCAL server
i don't know how to do that
where should "_dsn" folder be
how to create a "dsn_name" file
thanks for advices.
strProvider="DSN=access_1"
set objConn = server.createobject("ADODB.Connection")
objConn.Open strProvider
Set rst = Server.CreateObject("ADODB.recordset")
strQuery="select ..."
rst.Open strQuery, strProvider
i start using REMOTE host (win)
where an another type of connection has been used
dsn_name = "access_1"
sDSNDir = Server.MapPath("/_dsn")
connectstr = "filedsn=" & sDSNDir & "\" & dsn_name
Set oConn = Server.CreateObject("ADODB.Connection")
qry = "SELECT ... "
Set oRS = oConn.Execute(qry)
i can't change a way i have to connect to DB on REMOTE host
i want to make identical the connections on both hosts, so it will be easy to share scripts, etc.
so i need to switch to a second type of connection on my LOCAL server
i don't know how to do that
where should "_dsn" folder be
how to create a "dsn_name" file
thanks for advices.