ALTER TRIGGER [dbo].[ToBlockDeleting]
ON [dbo].[t]
INSTEAD OF DELETE
AS
BEGIN
update t set flag=flag+1 where t.id=(select id from deleted)
END
GO
ON [dbo].[t]
INSTEAD OF DELETE
AS
BEGIN
update t set flag=flag+1 where t.id=(select id from deleted)
END
GO