Connection String
"Provider=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};" &_
"UID=;PWD=YourPassword;" &_
"DBQ=DatabasePhysicalPath;"
ConnectionString = "Provider=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};" &_
"UID=;PWD=SamplePassword;" &_
"DBQ=C:\Domains\sample.net\db\sample.mdb;"
Conn.ConnectionString = ConnectionString
Conn.Open
You can use sample code below to connect to your MS Access's database:
Set Conn = Server.CreateObject("ADODB.Connection")
- 0 brukere syntes dette svaret var til hjelp