What is a trigger?

Answers were Sorted based on User's Feedback



What is a trigger?..

Answer / sathish kumar.t

Trigger is the collection of T-SQL statements, which is
activated based on certain actions. Trigger is fired, when
any of one DML statements will occur..

Is This Answer Correct ?    4 Yes 0 No

What is a trigger?..

Answer / raji

Triggers are basically used to implement business rules.
Triggers is also similar to stored procedures.
The difference is that it can be activated when data is
added or edited or deleted from a table in a database.

Is This Answer Correct ?    3 Yes 1 No

What is a trigger?..

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

What is a trigger?..

Answer / jerry joseph

Trigger gets executed when an INSERT UPDATE or DELETE occurs

2 types of triggers are INSTEAD OF triggers and AFTER triggers

Is This Answer Correct ?    1 Yes 0 No

What is a trigger?..

Answer / vimal

Trigger is a special type of store procedure.when we are going
to insert,update,delete table automatically trigger is invoked

Is This Answer Correct ?    1 Yes 0 No

What is a trigger?..

Answer / subodh devarde

Triggers are special type of stored procedure which execute automatically whenever any changes are occured in table in database after using insert update ,delete command.

Is This Answer Correct ?    0 Yes 0 No

What is a trigger?..

Answer / channu mamane

triggers are special type of stored procedure which are
automatically invoked at the time of modifyibg tables

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SQL Server Interview Questions

What are cursors in ms sql server?

0 Answers  


1. What are the grouping function in SQL ? 2. If base table of a view deleted means, what will happen while we querying on view ? will give any error ? 3. Difference between DROP, DELETE, TRUNCATE table ? 4. What is constraints and types ? 5. What is max size of nchar & nvarchar ? 6. Define ROLLBACK, COMMIT, SAVE POINT 7. How non-clustered better ? or rank the Clustered, Non-Clustered and Table scan in performance wise 8. Select 10 rows from a table ? 9. Define DML, DDL, DCL, DTL commands ? 10. What is mean by NULL value ? NULL means "" or 0 or undefined ? 11. Default constraints ? 12. Can we have more then primary Key in table ? 13. Type of integrity ? Entity, Referential, Domain ?

10 Answers   Perot Systems,


Explain about the command-line tool SQLCMD?

0 Answers  


What is the difference between char and varchar2 datatype in sql?

0 Answers  


How to divide query output into multiple groups with the group by clause in ms sql server?

0 Answers  






Can I work with several databases simultaneously? : sql server management studio

0 Answers  


What happens if null values are involved in bitwise operations?

0 Answers  


Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?

0 Answers  


What is purpose of normalization?

0 Answers  


How do I run a trace in sql server?

0 Answers  


how many non clustered index in sql server 2008,2010,2012

2 Answers   Accenture,


What is a not null constraint?

0 Answers  


Categories