“ql数据库连接”的ASP编程代码是什么

renwenyishuadmin 提交于 周三, 2018/06/13 - 03:35
分类

“ql数据库连接”的ASP编程代码是:

<%

option explicit

dim startime,endtime,conn,connstr,db

startime=timer()

connstr="driver=dayuhao sql server xiaoyuhao;server=hudenq-n11t33nb;uid=sa;pwd=xsfeihu;database=dvbbs"

set conn = server.createobject("adodb.connection")

conn.open connstr

function closedatabase

conn.close

set conn = nothing

end function

%>