+ -
当前位置:首页 → 问答吧 → Microsoft OLE DB Provider for SQL Server 错误 '80040e14'

Microsoft OLE DB Provider for SQL Server 错误 '80040e14'

时间:2011-09-03

来源:互联网

源码:
sqls="select top 1 user_ip,user_addtime from user_login_log where user_code='"&rs("user_code")&"' and user_scc='1' order by id desc "
response.write sqls
set rss=Server.CreateObject("ADODB.RecordSet")
rss.open sqls,conn,1,1 (这是74行)

提示:
select top 1 user_ip,user_addtime from user_login_log where user_code='02' and user_scc='1' order by id desc 
Microsoft OLE DB Provider for SQL Server 错误 '80040e14' 

不能比较或排序 text、ntext 和 image 数据类型,除非使用 IS NULL 或 LIKE 运算符。 

/user/user_index.asp,行 74 

用的SQLSERVER MSDE 这个语句,怎么写啊?

作者: By_love   发布时间: 2011-09-03

response.write sqls
怎么还输出数据库了

作者: mcyzz   发布时间: 2011-09-03

查看sql语句,个人习惯,如果没有错误,就删除了

作者: By_love   发布时间: 2011-09-03

user_code='02' and user_scc='1' 

看看这2个都是什么类型的,要是text、ntext 和 image 这几种类型就改成nvchar的

作者: sy_binbin   发布时间: 2011-09-03