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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Event Trigger

Status
Not open for further replies.

dan08

Technical User
Jan 7, 2013
51
US
I want to create a trigger in my database to track the changes in some of my more important tables. I would like to be able to find out what type of action was taken( e.g. UPDATE DELETE or INSERT). Is there any sort of variable or function I could include in my trigger to return this information.

Also in a related thought. I know a trigger has to be tied to either an insert or update event. So I'm thinking for each table I will have to have two triggers (one for each event). Is this true or is there a way to only have one trigger per table. If it isn't clear, this is my first time working with triggers.

Thanks for any help in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top