2006年9月3日星期日

asp连接mdb 数据库语句

   <%
 Dim conn
 Set conn=Server.CreateObject("ADODB.Connection")      '创建连接对象
 conn.Open "Dbq="&Server.Mappath("address.mdb")&";Driver={Microsoft Access Driver (*.mdb)}"   '对象使用open方法打开数据库,使用驱动为后面的字符
 %>

没有评论: