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.asp?q=comment&id=1745
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.asp?q=comment&id=1745
标签:
Sql Server
8626
您可能感兴趣的文章:
Sql Server 自动查询优化有时候也是靠不住的 (progame at 2006-10-19)
Sql Server 2005 还真是聪明了很多 (progame at 2007-06-25)
关于分页这点破事 -- 如何才能分得准 (progame at 2007-07-03)
小心getdate() (progame at 2007-08-16)
sql server2005恢复只有mdf文件的数据库 (progame at 2008-10-28)
聚集索引和uniqueidentifier (guid) 不得不说的故事 (progame at 2006-08-03)
sql server 2000的一个bug (progame at 2006-09-23)
没有日志,只有MDF文件如何恢复数据库(转) (progame at 2006-10-17)
浏览模式: 显示全部 |
评论: 1 |
引用: 0 | 排序 | 浏览: 164
[ 2008-07-17 18:33:21 ]
谢谢您的文章,帮我解决了问题

