Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21' ODBC 驱动程序不支持所需的属性
不是所有的时候都有这错误,只是有时候打开会有这错误,请问是什么原因,相关代码如下
sqlAnt = ""
if shenhe<>"" then
sqlAnt = "where BN_shenhe=" & shenhe & " "
end if
if cw_name<>"" and cw_user<>"" then
sqlant=sqlant&" and bn_title like '%"&cw_name&"%' and bn_username like '%"&cw_user&"%'"
else
if cw_name<>"" then
sqlant=sqlant&" and bn_title like '%"&cw_name&"%'"
else
if cw_user<>"" then
sqlant=sqlant&" and bn_username like '%"&cw_user&"%'"
end if
end if
end if
if cw_start<>"" and cw_enddate<>"" and cw_check=1 then
sqlant=sqlant&" and BN_time >= '"&cw_start&"' and BN_time <= '"&cw_enddate&"'"
end if
set cat = server.CreateObject("adodb.recordset")
ant = "select id,BN_title,BN_username,BN_time,BN_shenhe from biz_news_tab " & sqlAnt & " order by id desc"
cat.open ant,conn,1,1
sqlAnt = ""
if shenhe<>"" then
sqlAnt = "where BN_shenhe=" & shenhe & " "
end if
if cw_name<>"" and cw_user<>"" then
sqlant=sqlant&" and bn_title like '%"&cw_name&"%' and bn_username like '%"&cw_user&"%'"
else
if cw_name<>"" then
sqlant=sqlant&" and bn_title like '%"&cw_name&"%'"
else
if cw_user<>"" then
sqlant=sqlant&" and bn_username like '%"&cw_user&"%'"
end if
end if
end if
if cw_start<>"" and cw_enddate<>"" and cw_check=1 then
sqlant=sqlant&" and BN_time >= '"&cw_start&"' and BN_time <= '"&cw_enddate&"'"
end if
set cat = server.CreateObject("adodb.recordset")
ant = "select id,BN_title,BN_username,BN_time,BN_shenhe from biz_news_tab " & sqlAnt & " order by id desc"
cat.open ant,conn,1,1
...全文
相关推荐
Provider错误80004005终极解决方法(完全有效的方法)
IIS设置好之后打开ASP网站时总提示: Microsoft OLE DB Provider for ODBC Drivers 错误 ‘80004005’ [Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 ‘Temporary (volatile) Jet DSN for process 0x728 Thread 0x854 DBC 0x276fb44 Jet’, ********************************************************************************** P
Microsoft_VBScript_编译器错误代码含义大全
编译器错误代码含义大全,认识错误代码,更有效修正错误。
SQLSERVER连接MYSQL
SQLSERVER连接MYSQL
ASP+ODBC连接Oracle始终连接不上,网上的办法试遍了也不管用。最后本人发现了解决办法
Microsoft OLE DB Provider for ODBC Drivers 错误'80040e4d'[Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified. 使用PL-SQL Developer能连接上Oracle,但是ASP+ODBC连不上Oracle的终极解决办法_本人亲身验证
asp调试错误大全及解决方法
asp调试错误大全及解决方法 asp调试错误大全及解决方法


