紧急求救:出现了这种错误:Microsoft OLE DB Provider for SQL Server 错误 '80040e21' 应该怎么解决?100分全送,在线等!

popya 2004-02-04 11:12:07
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21'

ODBC 驱动程序不支持所需的属性。

/test.asp,行53

我这段程序是这样的,数据库是MS sql
代码为:
strSort=productSort
CALL getSort(productSort) '得到所有属于该类的子类
'response.write strSort
'response.End
page=Request("page")
if (page="" or isempty(page)) then page=1
thisUrl="product.asp?productSort="&productSort&"&myKeyword="&myKeyword
session("oldUrl")=thisUrl&"&page="&page
set rs=server.createobject("adodb.recordset")
sql="select * from product where 1=1"
if not (myKeyword="" or isempty(myKeyword) ) then
sql=sql&" and name like '%"&myKeyword&"%'"
end if
if productSort>0 then
sql=sql&" and productSort in ("&strSort&")"
end if
sql=sql&" order by id desc"
'response.write sql
'response.End
rs.open sql,conn,1,1 这就是第53行
rs.pagesize=MaxPerPage
%>
...全文
57 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧