Connection to the database in the ASP

zhaozj2021-02-16  42

The database bbs.mdb has a table with a friend.

<%

DIM CONN, RS

Set conn = server.createObject ("adoDb.connection")

Dbpath = server.mappath ("../ Data / bbs.mdb")

Conn.open "driver = {Microsoft acess driver (*. Mdb)}; dbq =" & dbpath

s = "SELECT * from Friend"

SET RS = Server.creatObject ("AdoDb.Recordset")

RS.Open S, CONN, 3

%>

转载请注明原文地址:https://www.9cbs.com/read-25846.html

New Post(0)