Hi
I have the following code in an update trigger
ALTER Trigger [dbo].[Upd_TIIssueQty]
On [dbo].[TrimIssued] FOR UPDATE NOT FOR REPLICATION
AS
Declare @MyAddQty decimal(10,2)
Declare @MyBOMItemCode int
Declare @MyWorkareaCode int
Declare @MyStyleCode int
Declare @MyPackCode int
Declare @MyGarmCode int
Declare @MySizeCode int
Declare @MyLocation varchar(20)
Declare @MyNewIssueQty decimal(10,2)
Declare @MyNewIssueRetQty decimal(10,2)
Declare @MyOldIssueQty decimal(10,2)
Declare @MyOldIssueRetQty decimal(10,2)
Declare @MyRowCount int
SELECT @MyRowCount=COUNT(*) FROM INSERTED
what will @Myrowcount be when an update occurs? does the from inserted use the updated records
Thanks in advance
I have the following code in an update trigger
ALTER Trigger [dbo].[Upd_TIIssueQty]
On [dbo].[TrimIssued] FOR UPDATE NOT FOR REPLICATION
AS
Declare @MyAddQty decimal(10,2)
Declare @MyBOMItemCode int
Declare @MyWorkareaCode int
Declare @MyStyleCode int
Declare @MyPackCode int
Declare @MyGarmCode int
Declare @MySizeCode int
Declare @MyLocation varchar(20)
Declare @MyNewIssueQty decimal(10,2)
Declare @MyNewIssueRetQty decimal(10,2)
Declare @MyOldIssueQty decimal(10,2)
Declare @MyOldIssueRetQty decimal(10,2)
Declare @MyRowCount int
SELECT @MyRowCount=COUNT(*) FROM INSERTED
what will @Myrowcount be when an update occurs? does the from inserted use the updated records
Thanks in advance