代码已发送,DADA/CONN.ASP文件错了,应该是这个。
<%
Set Conn=Server.CreateObject("ADODB.Connection")
Connstr="Provider=SQLOLEDB.1;Password=;Persist Security Info=True;User ID=sa;Initial Catalog=jzxys_jialian;Data Source=."
'on error resume next
Conn.Open connstr
if err<>0 then
response.write ("<script> alert('数据库连接失败!');</script>")
response.end
end if
%>