sohnee
06-04-2003, 05:53 AM
Hello,
What do I need to add to the following statement in order to connect using a database password -
I have tried 'pwd=password' to no avail!
<%
private mconConnection
function fnOpenDatabase()
dim conConnection
Set conConnection = Server.CreateObject("ADODB.Connection")
conConnection.Open("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("\odford\db\odford.mdb") & ";" & _
"Persist Security Info=False")
set fnOpenDatabase = conConnection
end function
%>
What do I need to add to the following statement in order to connect using a database password -
I have tried 'pwd=password' to no avail!
<%
private mconConnection
function fnOpenDatabase()
dim conConnection
Set conConnection = Server.CreateObject("ADODB.Connection")
conConnection.Open("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("\odford\db\odford.mdb") & ";" & _
"Persist Security Info=False")
set fnOpenDatabase = conConnection
end function
%>