zzfive03
Programmer
- Jun 11, 2001
- 267
Hello, this thing is turning out to be a huge pain.
I usualy use SQL server, so Access is new to me. I need to connect to my MS Access server across a DSNLess connection via ASP.
Here is what I have:
Dim DB, RS, DSNString
Set DB = Server.CreateObject("adodb.connection"
Set RS = Server.CreateObject("adodb.recordset"
DSNString="DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & server.mappath("MyDatabase.mdb"
DB.Open DSNString
It works if I comment out the last line. then, how do i Run my SQL = "select * from {table}"?
Thanks for your help
I usualy use SQL server, so Access is new to me. I need to connect to my MS Access server across a DSNLess connection via ASP.
Here is what I have:
Dim DB, RS, DSNString
Set DB = Server.CreateObject("adodb.connection"
Set RS = Server.CreateObject("adodb.recordset"
DSNString="DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & server.mappath("MyDatabase.mdb"
DB.Open DSNString
It works if I comment out the last line. then, how do i Run my SQL = "select * from {table}"?
Thanks for your help