Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to cahnge the inserted value in the trigger

Status
Not open for further replies.

jagguhandle

Programmer
Joined
Mar 21, 2004
Messages
3
Location
US
hi,
I want to change the inserted value in the trigger with notifying the user.
i cant update the value in the INSERTED table as this ia logical table.

Any boody please help.
 
You have to update the table on which the trigger is based

Code:
update trigggerTable
set c = <newValue>
where primaryKeyColumn in 
    (select primarykeyColumn 
       from inserted)

What do you mean by: with notifying the user?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top