stockView 是具有全文索引的索引视图,我收到以下错误消息。该数据库以 2005 兼容模式在 2008 Express 引擎上运行。
代码:
with stockCte (title, grade, price, weighted)
as
(
select sv.[title] ,
sv.[grade] ,
sv.[price] ,
(case when sv.[issue] = @issue and svs.[rank] > 30
then svs.[rank] + 100
else svs.[rank]
end) weighted
from stockView sv
inner join freetexttable(stockView, (name), @term) svs
on sv.[id] = svs.[key]
)
select * from stockCte;
错误:
Msg 0, Level 11, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.
当我删除内部联接和加权列时,查询有效。任何想法,我都不知所措。