rs我清楚,每次用完后我就rs.close, set rs=nothing,
关键是哪种情况conn打开,一般我的是默认打开的
db="xx"
on error resume next
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath(db)
conn.Open connstr
if err then
err.clear
set conn=nothing
response.write "数据库连接出错,请检查conn.asp中的连接字符串。"
response.end
end if