急,高手看看!ADODB.Recordset (0x800A0BB9)参数类型不正确

来源:百度知道 编辑:UC知道 时间:2024/06/17 18:05:44
我是新手,能不能给出具体的解决方法,有针对些!谢谢!
全部代码
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/mark.asp" -->
<%
Dim rs
Dim rs_numRows

Set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = MM_mark_STRING="dsn=;UID=;PWD=;"
rs.Source = "SELECT 姓名, 绩点 FROM 生工一绩点"
rs.CursorType = 0
rs.CursorLocation = 2
rs.LockType = 1
rs.Open()

rs_numRows = 0
%>
<html>

<head>
<title>数据库</title>
</head>

<body>
</body>
</html>
<%
rs.Close()
Set rs = Nothing
%>

错误类型:
ADODB.Recordset (0x800A0BB9)
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/Untitled-1.asp, 第 8 行

浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MAXTHON 2.0)

网页:
GET /Untitled-1.asp
什么是数据链接文件,什么格式的,是不是

今天刚解决同样的问题!
是数据库没连接上吧!
<!--#include file="Connections/mark.asp" -->
这是连接数据库的吗,如果是,那检查一下路径有没有错,如果不是,那就是缺少数据连接文件了.