dim conn
這裡是數據庫創建聯連方法
sub opendb()
set rs=server
set conn=server
conn
conn
end sub
//這裡是asp數據關閉方法
sub closedb()
if isobject(rs) then
if not(rs is nothing) then
rs
set rs=nothing
end if
end if
if isobject(conn) then
if not(conn is nothing) then
conn
set conn=nothing
end if
end if
end sub
From:http://tw.wingwit.com/Article/program/net/201311/13341.html