What is Trigger?
Answers were Sorted based on User's Feedback
Answer / koti-khammam
Trigger is a special type of stored procedure that will
fire automatically when ever data modifications like
INSERTIONS,UPDATIONS or DELETIONS occurs on the table.
Is This Answer Correct ? | 11 Yes | 0 No |
Answer / kaushik chatterjee
A trigger is some what simillar to stored procedure. It is
written to perform a set of predefined actions when a
perticular database objecy such as tables,views are
DELETED,INSERTED,UPDATED.
Triggers are implicitly called and are NOT instactiated by
the user. Once written, it will be called automatically by
the DBMS engine when a UPDATE/DELETE/INSERT operation is
performed on the database object for which the trigger is
intended or written.
Triggers can be written for any one of the 3 operations
written above or all of them.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / pawan378
above answers are correct.
let me add some thing.
Trigger
(Pre - Trigger) is a dynamic Rule that should be done before
Data modification Happens.
or
(Post - Trigger) is a Consequent step that should be taken
as soon as the Data Happens.
Is This Answer Correct ? | 5 Yes | 0 No |
Explain what is the difference between a local and a global temporary table?
What is history table in sql server?
What are the types of stored procedures in an sql server?
What is a derived table?
what is performance tunning in sql server ? explain.
We need to perform what steps in the following order to work with a cursor?
difference between sql server2000 and sql server2005
What is the meaning of lock escalation and why/how to stop this? : sql server database administration
your distribution database is full what will u do
The Difference between 'Count' and 'Count(*)'
What is sql server locking?
What are the types of lock supported by ?