Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Home Answers Viewqa SQL What is Trigger?

View Questions and Answers by Category


Have Programming Question? Ask it here!

hemant kumar
What is Trigger?
1 Answer(s)      4 years and a month ago
Posted in : SQL

What is Trigger?

View Answers

November 18, 2010 at 1:13 PM


A trigger is a special kind of stored procedure that automatically executes when an event occurs in the database server.The event can be any event including INSERT, UPDATE and DELETE. The difference between a trigger and a stored procedure is that a trigger is activated or called when an event happens in a database table, a stored procedure must be called explicitly.

For example you can have some business logic to do before or after inserting a new record in a database table.


Related Tutorials/Questions & Answers: