For an application I would like to contact a server and a db on it. Is there anybody with an easy to follow script for this purpose? It would be highly appreciated!
Well, if you don't have a DSN setup for your database on the server, you can use a connectionless version. But you need to know the path of the database.
I'm copying this from my Beginning ASP with Databases by Wrox book BTW...
set oConn=Server.CreateObject("ADOBDB.connection"
oConn.connectionstring = "DRIVER={Microsoft Access Driver (*.mdb)}"
oConn.connectionstring = oConn.connectionstring & ";DBQ=D:WROX\ASP-ADO\Sailors.mdb"
oConn.open
OF course, the DBQ will have to be the path to your database... but you get the idea.
Mary
Rule 1: Don't sweat the small stuff.
Rule 2: EVERYTHING is small stuff!! X-)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.