Access MS database with DSNless connection using ASP???

 
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP
View previous topic :: View next topic  
Author Message
warner81
-


Joined: 29 Mar 2003
Posts: 3

PostPosted: Sun Mar 30, 2003 3:31 am    Post subject: Access MS database with DSNless connection using ASP??? Reply with quote

Hi all,

how can I access MS database with DSNless connnection using ASP?
Back to top View user's profile Send private message
Dave
-


Joined: 11 Feb 2003
Posts: 184
Location: United Kingdom

PostPosted: Sun Mar 30, 2003 9:47 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group