在创建触发器时提示错误信息:
不能在 'inserted' 表和 'deleted' 表中使用 text、ntext 或 image 列
解决方法
Create TRIGGER tr_DataSyncInsert
ON dbo.Open_AllItem
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO dbo.Open_Item
SELECT
*
FROM dbo.Open_AllItem Where [Item_ID] IN (Select [Item_ID] From inserted)
END
GO通过 Where [Item_ID] IN (Select [Item_ID] From inserted)来解决。
6242



被折叠的 条评论
为什么被折叠?



