我正在测试把我们的数据库从2005年服务器移至2008年。 我们用CTE计算。
在使用全文时,国家情报和安全局不会出现错误。
在此,我不工作守则
WITH results AS (
SELECT ROW_NUMBER() over (ORDER BY GBU.CreateDate DESC ) as rowNum,
GBU.UserID,
NULL AS DistanceInMiles
FROM User GBU WITH (NOLOCK)
WHERE 1=1
AND GBU.CountryCode IN (SELECT [Value] FROM fn_Split( USA , , ))
AND GBU.UserID IN (SELECT [KEY] FROM CONTAINSTABLE(VW_GBU_Search, *, COMPASS ))
)
SELECT * from results
WHERE rowNum BETWEEN 0 and 25
如果我对CONTAINSTABLE线发表评论,则发言就执行。 如果我只发言(没有发言),发言将罚款。
我发现的无益错误是:
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.
任何建议?