<html>
<head>
<title>学生成绩管理系统</title>
</head>
<%
dlm=request("txtdlm")
kl=request("paskl")
if dlm="" and kl="" then
response.Redirect("login.asp")
end if
%>
<body>
<%
set cn1=server.CreateObject("ADODB.connection")
cn1.connectionstring="driver={SQL Server};dbq="&server.MapPath("XSCJUSER.mdb")
cn1.open
set rs1=cn1.Execute("SELECT * FROM XSCJUSER WHERE userdlm='"&dlm&"' and userkl='"&kl&"'")
if rs1.eof then
rs1.close
cn1.close
set cn1=nothing
response.Redirect("login.asp")
else
rs1.close
cn1.close
set cn1=nothing
response.Redirect("xscj.htm")
end if
%>
</body>
</html>
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver]0800108001没有提供任何 DSN 或 SERVER 关键字
/成绩管理系统/loginOK.asp, 第 24 行
帮忙看下~~~THANNNNNNNNNNNNNNNNNNK UUUUUUUUUU
[此贴子已经被作者于2006-11-19 16:10:06编辑过]