What is the difference between constraints and triggers?

Answer Posted / amit upadhyay

DIFFRENCE BETWEEN CONSTRAINTS AND TRIGERS


CONSTRAINTS :- IS USED FOR ENFORCING THE DATA INTEGRITY.

TRIGGER :- SQL SERVER AUTOMATICALLY FIRED TRIGGER
WHENEVER WE DO DML OPERATION.THIS IS ALSO
USED FOR ENFORCING THE DATA INTEGRITY.
WHENEVER TRIGGER IS FIRED TWO MAGIC TABLE
ARE CREATED.ONE IS INSETRTED AND SECOND
IS DELETED.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are various aggregate functions that are available?

707


How can we delete Duplicate row in table?

801


What do we need queues in sql service broker?

722


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

795


List out the differences between global and local temp tables in sql server?

763


Why olap is used?

735


What do you understand by coalesce in sql server?

739


What are the differences between “row_number()”, “rank()” and “dense_rank()”?

730


What is indexing explain it with an example?

730


What is merge join?

846


How to include text values in sql statements?

775


How to link tables in sql server?

676


Explain the categories of stored procedure?

726


What is the new security features added in sql server 2016? : sql server security

814


What is user-defined scalar function?

740