不能在 'inserted' 表和 'deleted' 表中使用 text、ntext 或 image 列
在
create
trigger
trg
on
t1 for
update
改成
create
trigger
trg
on
t1 instead
of
update
將for改成 instead of 就可以在觸發器中訪問二進制字段了,也不需要去根據id去查詢
2、
不能比較或排序 text、ntext 和 image 數據類型,除非使用 IS NULL 或 LIKE 運算符
當你想對inserted及deleted兩個表進行對比時可能會出現以上錯誤