Quantcast
Channel: SQLServerCentral » SQL Server 2008 » SQL Server 2008 - General » Latest topics
Viewing all articles
Browse latest Browse all 16406

two almost identical triggers working fine except one line in each

$
0
0
I have two triggers that fire upon an insert that fires both simultaneously with no problems except this one line of each (ALONE they fire fine with this line)... clues?:INSERTED.PO_Number + INSERTED.AppUser + INSERTED.SoftwareShortName + INSERTED.HeatTicketNumber,Here are both triggers:GOUSE [TrackIT]GOSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE TRIGGER [dbo].[trPopulateJournalEntriesCredits]ON [dbo].[tblTransactions]AFTER INSERTAS BEGIN INSERT INTO tblSWJournal (tblSWJournal.Description, tblSWJournal.Amt, tblSWJournal.Cost_Center) SELECT INSERTED.PO_Number + INSERTED.AppUser + INSERTED.SoftwareShortName + INSERTED.HeatTicketNumber, (INSERTED.Unit_Price * -1), '823008' FROM INSERTED WHERE INSERTED.Transaction_Type = 'From Bulk Assignment' ENDGOUSE [TrackIT]GOSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE TRIGGER [dbo].[trPopulateJournalEntries]ON [dbo].[tblTransactions]AFTER INSERTAS BEGIN INSERT INTO tblSWJournal (tblSWJournal.Description, tblSWJournal.Amt, tblSWJournal.Cost_Center) SELECT INSERTED.PO_Number + INSERTED.AppUser + INSERTED.SoftwareShortName + INSERTED.HeatTicketNumber, INSERTED.Unit_Price, INSERTED.AllocationCostCenter FROM INSERTED WHERE INSERTED.Transaction_Type = 'From Bulk Assignment' END

Viewing all articles
Browse latest Browse all 16406

Latest Images

Trending Articles



Latest Images