CREATE TRIGGER [input_Delete] ON [dbo].[storage_input]
FOR DELETE
AS
declare @trans bit
select @trans=sin_trans from deleted
if @trans=0
sql1
else
sql2
FOR DELETE
AS
declare @trans bit
select @trans=sin_trans from deleted
if @trans=0
sql1
else
sql2
FOR DELETE
AS
declare @trans bit
select @trans=sin_trans from deleted
if @trans=0
sql1
else
sql2
ON [dbo].[storage_input]
FOR DELETE
AS
declare @trans bit
select @trans=sin_trans from deleted
if @trans=0
begin
sql1
end
FOR DELETE
AS
declare @trans bit
select @trans=sin_trans from deleted
if @trans=0
beign
sql1
end
else
begin
sql2
end