What is a trigger ?

Answer Posted / kiran

Trigger is a special type of stored procedure which is
implicitely executed when an insert , update or delete
happens on the data.
We dnt have to call trigger explicitely.
For applying some business rules we can fire trigger at
specific type.
Suppose i want a log when user inserts data on a particular
table i can use trigger.

2 types of trigger
1) DML Trigger - Applies on data -
- Instead of and After Trigger
2)DDL Trigger - Applies on database structure - on table or
database - these triggers came with sql server 2005.

Before sql server 2005 we were having only DML Triggers.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is recursive stored procedure?

606


how to enter numeric values as hex numbers? : Sql dba

570


Can we join 3 tables in sql?

498


Is sql difficult?

746


what is the use of double ampersand (&&) in sql queries?

627






GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

2572


How many clustered indexes can be created on a table?

595


How will you distinguish a global variable with a local variable in pl/sql?

626


What is out parameter used for eventhough return statement can also be used in pl/sql?

586


How do I upgrade sql?

551


What type of database is cloud sql?

578


Show code of a cursor for loop.

584


explain the difference between myisam static and myisam dynamic. : Sql dba

519


What are the types of keys?

514


What is query execution plan in sql?

571