紧急求救:出现了这种错误: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
%>