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

How can delete duplicate records in cte in sql server?

507


What are entities and relationships?

544


How do I find the transaction log size in sql server?

509


Tell about MOM Tool(Microsoft Operator Manager)?

1405


Can group by and orderby be used together?

589






Which Model uses the SET concept

572


What are the elements of dbms?

535


You have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation?

476


Explain trigger classes i.e. Instead of and after trigger?

479


What is filtered index?

645


How to verify a login name with sqlcmd tool?

588


How do I start sql server 2017?

523


You are designing a database for your human resources department in the employee table, there is a field for social security number, which cannot contain null values if no value is given, you want a value of unknown to be inserted in this field what is the best approach?

613


What are the difference between clustered and a non-clustered index?

580


What is primary key and example?

496