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.
内部結合と加重列を削除すると、クエリが機能します。どんなアイデアでも、私は途方に暮れています。