What is Trigger?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use trigger new in before insert?

519


What are the dmvs?

575


what do you understand by change data capture?

562


How to use the inserted and deleted pseudo tables?

545


What is set nocount on and what is set nocount off?

517






What do you understand by hotfixes and patches in sql server?

520


What do you mean by data integrity?

601


List the different types of joins?

572


What is auditing in sql server?

507


When do you think a developer should use sql server-based cursors?

524


Tell me the difference between clustered and non-clustered index?

520


How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?

588


How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?

1633


What is the difference between varchar and varchar(max) datatypes?

563


How to write a query with a left outer join in ms sql server?

578