82. What Is A Trigger? What Are The Types Of Trigger? Triggers are database object. Basically these are special type of stored procedure that is automatically fired / executed when a DDL or DML command statement related with the trigger is executed. They can be executed automatically on the insert, delete and update operation. Trigger allows us to execute a batch of SQL code when an insert, update or delete command is executed against a specific table. Triggers are generally used to implement business rules, auditing. Triggers can also be used to extend the referential integrity checks, but wherever possible, use constraints for this purpose, instead of triggers, as constraints are much faster. In SQL Server we can create four types of triggers Data Definition Language (DDL) triggers. Data Manipulation Language (DML) triggers. After Trigger (using FOR/AFTER CLAUSE) Instead of Trigger (using INSTEAD OF CLAUSE) Common Language Runtime (CLR) triggers. Logon tri...
All HR and Technical interview questions with answers for freshers and experienced professional. It helps job seekers who are about to attend interviews.