connect yo database access with password

G

Guest

hi !
how i can connect to my database in ASP only with password
i connect to my database like this:
dim conn,SQLstr,rs
Set conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
DSNName = "DRIVER=Microsoft Access Driver (*.mdb);DBQ="
DSNName = DSNName & Server.MapPath("/ts_egged/db1.mdb")
 
D

Douglas J. Steele

Try:

DSNName = "Provider=Microsoft.Jet.OLEDB.4.0;;" & _
"Data Source=" & Server.MapPath("/ts_egged/db1.mdb") & _
";Jet OLEDB:Database Password=MyDbPassword"

(replace MyDbPassword with whatever's appropriate)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top