ERROR MESSAGE:
Msg 4104, Level 16, State 1, Procedure TRG_Guestshistory, Line 10
The multi-part identifier "maintable.fname" could not be bound.
Msg 4104, Level 16, State 1, Procedure TRG_Guestshistory, Line 10
The multi-part identifier "maintable.lname" could not be bound.
ALTER TRIGGER [dbo].[Tgr_guests] ON [dbo].[maintable] AFTER UPDATE AS IF (NOT EXISTS(SELECT * FROM guesthistory WHERE fname = maintable.fname AND lastname = maintable.lname) ) BEGIN INSERT INTO guesthistory (salutation,fname,mname,lastname,nationality,address,eadd,phoneno,mobileno,discard,company,birthdate) Select sal,fname,mname,lname,nationality,address,eadd,phoneno,mobileno,discard,company,birthdate from INSERTED END

New Topic/Question
Reply


MultiQuote




|