INSERTED is just an instrinsic temp table and will go out of scope when the trigger has finished. If you are trying to do something with the table the trigger is working on, then link the INSERTED table on the PK and update the column in the base table.
If you want to intercept the value before it gets inserted/updated/deleted in the base table, make the trigger an INSTEAD OF (before) rather than a FOR (after). For the before trigger, you will have to provide the insert, update or delete code yourself.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.