-1
SELECT失敗,因爲以下 SET選項有不正確的設置: 'ARITHABORT'。驗證SET選項 適用於索引視圖 和/或計算列 和/或查詢通知和/或xml 數據類型方法的索引。同時更新xml文件我這樣的錯誤
任何人都可以說,什麼問題在下面的語句
while(@CountOfFile>[email protected])
begin
SELECT @FileName = Attachments.value('(/Files/File[@Id=sql:variable("@Inc")]/Name/text())[1]','nvarchar(50)') FROM MOD_Quiz where Id = @Id
select @FilePath = Attachments.value('(/Files/File[@Id=sql:variable("@Inc")]/FilePath/text())[1]','nvarchar(50)') FROM MOD_Quiz where Id = @Id
set @Actual_Path = @FilePath + '/' + @Id + '/' + @FileName
set @[email protected]+1
update MOD_Quiz set Attachments.modify('replace value of (/Files/File[@Id=sql:variable("@Inc")]/FilePath/text())[1] with sql:variable("@Actual_Path") ') where Id [email protected]
end
如果您發佈代碼,XML或數據樣本,請**在文本編輯器中突出顯示這些行,然後單擊編輯器工具欄上的「代碼示例」按鈕(「{}」)以精確地設置格式和語法突出顯示它! –
如果您使用'SQL Server'請看看我的答案[失敗,因爲不正確的arithabort設置](http://stackoverflow.com/questions/35140159/failed-because-incorrect-arithabort-setting/35750269#35750269)頁。希望這可以幫助... –