View previous topic :: View next topic |
Author |
Message |
warner81 -
Joined: 29 Mar 2003 Posts: 3
|
Posted: Sun Mar 30, 2003 3:31 am Post subject: Access MS database with DSNless connection using ASP??? |
|
|
Hi all,
how can I access MS database with DSNless connnection using ASP? |
|
Back to top |
|
|
Dave -
Joined: 11 Feb 2003 Posts: 184 Location: United Kingdom
|
Posted: Sun Mar 30, 2003 9:47 am Post subject: |
|
|
Like this...
Set Conn = Server.CreateObject("Adodb.Connection")
Then this
DSN=DSN & "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=C:\path\to\database\database.mdb;"
Or this
DSN=DSN & "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("Database.mdb")
Finally, open the connection...
Conn.open DSN _________________ Any information contained herein is provided in "as is" condition without any guarantee for its accuracy, contains no warrantees - express or implied - and confers no rights.
X1 1.1.4: http://www.aprelium.com/news/abwsx1u1.html |
|
Back to top |
|
|
|