運行在SQL Server Management Studio中下面的查詢「當前命令發生了嚴重錯誤」給出了下面的錯誤。SQL Server錯誤 -
update table_name set is_active = 0 where id = 3
A severe error occurred on the current command. The results, if any, should be discarded.
- 日誌已被截斷
- 有一個更新觸發器,但這個心不是問題
- 事務計數爲零(@@ TRANCOUNT)
我已經在數據庫中的其他幾個表上嘗試過相同的更新語句,並且它們工作正常。
DBCC CHECKTABLE('table_name');
給
DBCC results for 'table_name'.
There are 13 rows in 1 pages for object "table_name".
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
今天我有完全一樣的錯誤。拋出錯誤的列甚至沒有涉及被破壞的索引。 – 2013-03-15 10:02:18