Only text pointers are allowed in work tables

[ 2008-06-24 13:30:55 | 作者: progame ]
文字大小: | |
Server: Msg 8626, Level 16, State 1, Line 1
Only text pointers are allowed in work tables, never text, ntext, or image
columns. The query processor produced a query plan that required a text,
ntext, or image column in a work table.

服务器: 消息 8626,级别 16,状态 1,行 1
在工作表中只允许有 text 指针,而决不允许有 text、ntext 或 image 列。查询处理器生成的查询计划要求在工作表中有 text、ntext 或 image 列。

将此关字段cast可以解决此问题
原因是union的查询内出现了text, ntext, image列, 然后再在外部对任意列order by, 即出现此问题
评论Feed 评论Feed: /feed.asp?q=comment&id=1745

标签: Sql Server 8626

浏览模式: 显示全部 | 评论: 1 | 引用: 0 | 排序 | 浏览: 164
引用 wlxlzx*
[ 2008-07-17 18:33:21 ]
谢谢您的文章,帮我解决了问题

发表
表情图标
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
UBB代码
转换链接
表情图标
悄悄话
用户名:   密码:   (非注册用户不需要输入密码) 注册?
验证码(不区分大小写) * 请输入验证码