Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21'
时间:2011-06-28
来源:互联网
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21'
ODBC 驱动程序不支持所需的属性。
/admin_addlaw.asp,行618
请各位大吓给我分析一下,拜托,以下是我的原程序:
</table>
<p>说明:<br>
1、请选择法律栏目进行管理。<br>
2、因为双向连接以位置定位,所以目前只能作删除操作,不能作修改。<br>
3、选择"快速管理",将只选取各库的前5000条记录,不会出现超时的现象,操作界面不变。
<%
end sub
sub list
dim strGuide,top
strGuide="<table width='100%'><tr><td align='left'>您现在的位置:<a href='admin_addlaw.asp'>法律文书管理</a> >> "
if request("search")<>"" then
strfilename="admin_addlaw.asp?action=List&tablename="&tablename&"&search="&request("search")&"&select="&request("select")
else
strfilename="admin_addlaw.asp?action=List&tablename="&tablename
end if
top=request("top")
if top=1 then
sql="select top 5000 id,bt from "
else
sql="select id,bt from "
end if
if request("search")<>"" then
if request("select")=1 then
sql=sql&tablename&" where contains(bt,'"+trim(request("search"))+"') order by id desc"
elseif request("select")=2 then
sql=sql&tablename&" where contains(fl,'"+trim(request("search"))+"') order by id desc"
else
sql=sql&tablename&" where contains(nr,'"+trim(request("search"))+"') order by id desc"
end if
else
sql=sql&tablename&" order by id desc"
end if
strGuide=strGuide & "</td><td align='right'>"
if FoundErr=True then exit sub
Set rs=Server.CreateObject("Adodb.RecordSet")
'response.write sql
'response.end
rs.Open sql,conn,1,1
if rs.eof and rs.bof then
strGuide=strGuide & "共找到 <font color=red>0</font> 条内容</td></tr></table>"
response.write strGuide
search
此处即618else
totalPut=rs.recordcount
strGuide=strGuide & "共找到 <font color=red>" & totalPut & "</font> 条内容</td></tr></table>"
response.write strGuide
search
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
ODBC 驱动程序不支持所需的属性。
/admin_addlaw.asp,行618
请各位大吓给我分析一下,拜托,以下是我的原程序:
</table>
<p>说明:<br>
1、请选择法律栏目进行管理。<br>
2、因为双向连接以位置定位,所以目前只能作删除操作,不能作修改。<br>
3、选择"快速管理",将只选取各库的前5000条记录,不会出现超时的现象,操作界面不变。
<%
end sub
sub list
dim strGuide,top
strGuide="<table width='100%'><tr><td align='left'>您现在的位置:<a href='admin_addlaw.asp'>法律文书管理</a> >> "
if request("search")<>"" then
strfilename="admin_addlaw.asp?action=List&tablename="&tablename&"&search="&request("search")&"&select="&request("select")
else
strfilename="admin_addlaw.asp?action=List&tablename="&tablename
end if
top=request("top")
if top=1 then
sql="select top 5000 id,bt from "
else
sql="select id,bt from "
end if
if request("search")<>"" then
if request("select")=1 then
sql=sql&tablename&" where contains(bt,'"+trim(request("search"))+"') order by id desc"
elseif request("select")=2 then
sql=sql&tablename&" where contains(fl,'"+trim(request("search"))+"') order by id desc"
else
sql=sql&tablename&" where contains(nr,'"+trim(request("search"))+"') order by id desc"
end if
else
sql=sql&tablename&" order by id desc"
end if
strGuide=strGuide & "</td><td align='right'>"
if FoundErr=True then exit sub
Set rs=Server.CreateObject("Adodb.RecordSet")
'response.write sql
'response.end
rs.Open sql,conn,1,1
if rs.eof and rs.bof then
strGuide=strGuide & "共找到 <font color=red>0</font> 条内容</td></tr></table>"
response.write strGuide
search
此处即618else
totalPut=rs.recordcount
strGuide=strGuide & "共找到 <font color=red>" & totalPut & "</font> 条内容</td></tr></table>"
response.write strGuide
search
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
作者: fengboy918 发布时间: 2011-06-28
618处是 else
作者: fengboy918 发布时间: 2011-06-28
response.write strGuide
search
else
totalPut=rs.recordcount
你上面那search啥 意思?
search
else
totalPut=rs.recordcount
你上面那search啥 意思?
作者: z1101385391 发布时间: 2011-06-28
没人帮忙给看下吗
作者: fengboy918 发布时间: 2011-06-28
search
查询啊,就是输入关键字查询的时候报的错
查询啊,就是输入关键字查询的时候报的错
作者: fengboy918 发布时间: 2011-06-28
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28