on error resume next conn.open connstr if err.number <>0 then response.write "数据库链接错误!" response.End() end if
注意下面是err.number 而不是error
on error resume next conn.open connstr if err.number <>0 then response.write "数据库链接错误!" response.End() end if
注意下面是err.number 而不是error