Guest_imported
New member
- Jan 1, 1970
- 0
I'm trying to open a database secured by a password with an ASP page
The database, without a password, opens with the code shown below:
'Create a connection object
Set Conn = Server.CreateObject("ADODB.Connection"
'Select provider
Conn.Provider = "Microsoft.Jet.OLEDB.4.0"
'Select data source - the Kingswood database.
Conn.ConnectionString = "Data Source=" & Server.MapPath ("kingswood.mdb"
'Open the connection
Conn.Open
How do I modify this code to open the database when it has a password?
The database, without a password, opens with the code shown below:
'Create a connection object
Set Conn = Server.CreateObject("ADODB.Connection"
'Select provider
Conn.Provider = "Microsoft.Jet.OLEDB.4.0"
'Select data source - the Kingswood database.
Conn.ConnectionString = "Data Source=" & Server.MapPath ("kingswood.mdb"
'Open the connection
Conn.Open
How do I modify this code to open the database when it has a password?