Hello
I often see connection strings to MS Access databases written in this format:
Code:
'Build connection
set conn = server.CreateObject ("ADODB.Connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath ("users.mdb")
set rs = server.CreateObject ("ADODB.Recordset")
Unfortunately, it's one which my hosting services does not like, preferring instead this format:
Code:
conn.Open "driver={Microsoft Access Driver (*.mdb)};DBQ=D:\business\users.mdb;"
How is it best (or easiest) to translate the first type of connection to the second?
Can I simply change:
Code:
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath ("users.mdb")
to:
Code:
conn.Open "driver={Microsoft Access Driver (*.mdb)};DBQ=D:\business\users.mdb;"
Thanks for any advice.
Steve