View Full Version : DSN-Less Connection
Leeus
11-02-2002, 09:12 PM
I am currently using "Driver={Microsoft Access Driver (*.mdb)};Dbq=c:\folder\mydb.mdb;" which works fine, is there one for a file in the same folder as all asp files, I have tried I am currently using "Driver={Microsoft Access Driver(*.mdb)};Dbq=mydb.mdb;" Which doesn't work!
Mhtml
11-02-2002, 11:21 PM
"DRIVER={Microsoft Access Driver (*.mdb)}; DBQ="&Server.MapPath("myDb.mdb")&";"
Leeus
11-03-2002, 03:50 PM
Getting some errors in DW MX, any tips for this bloody annoying program, trying to set it up for a client!
Here is the error http://www.leeus.co.uk/images/error.gifhttp://www.leeus.co.uk/images/error.gif
victoria_1018
11-05-2002, 08:04 AM
You can try this:
"driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("\Name Of Folder") & "\Database.mdb"
whammy
11-07-2002, 12:25 AM
Yeah, actually if you're using access, you need to have your access database above the root of your web directory (like they do it on brinkster.com) so noone can just download your database!
In order to do that you need to use Server.MapPath() to map the file path locally.
:)
Mhtml
11-07-2002, 08:30 AM
I can never get DW MX to recognise my connections, I would use dsn but I am always mucking around with new databases instead of adding to existing ones.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.