<%@language=vbscript%>
<%
'on error resume next
dim startime
dim conn,connstr
dim defaultskin
startime=timer()
defaultskin=4      '设置默认面版
dim db
db="data\UserDt.mdb"
db=Server.MapPath(db)
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & db
'如果你的服务器采用较老版本Access驱动，请用下面连接方法
'connstr="driver={Microsoft Access Driver (*.mdb)};dbq=" & db
conn.Open connstr
function CloseDatabase
Conn.close
Set conn = Nothing
End Function
%>