What is a trigger?

Answer Posted / jerry joseph

Triggers are a special type of Stored procedure which
execute automatically when a triggering action like INSERT,
UPDATE or DELETE occurs.

INSTEAD OF trigger
- executes automatically in place of triggering actions like
INSERT, UPDATE or DELETE
- executes before PK, FK constrains are checked

AFTER trigger
- executes automatically after the statement that triggered
it completes
- executes after constrains are checked

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How exceptions can be handled in sql server programming?

705


What is scd (slowly changing dimension)? : sql server analysis services, ssas

753


your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files? : Sql server administration

737


What happens when converting big values to integers?

727


How we can refresh the view?

789






What is ssrs?

109


How to execute a sql statement using odbc_exec()?

742


We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?

1102


What are the types of containers in ssis?

778


What are the default system databases in sql server 2000?

685


What are the basic functions for master, msdb, model, tempdb and resource databases?

747


How to drop an existing table?

726


What are types of storage modes? : sql server analysis services, ssas

768


What is sql server database?

668


Why use view instead of a table?

706