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

Who is the owner of a schema in ms sql server?

541


What is a with(nolock)?

573


What are four major operators that can be used to combine conditions on a where clause?

592


What is report rendering ?

102


how do you determine the Load performance of any query in sql server {example how do u determine performance of a select stmnt which returns Dynamically many no of records ... some times 100,1000,10000 etc., }

1843






Tell me what is fill factor?

551


How you can change the database name in SQL SERVER?

664


What do you mean by subquery?

579


Why we should not use triggers?

534


Write an sql query for deleting duplicate rows?

549


Explain what is the difference between union and union all?

545


What do you mean by table and field in sql?

550


How is a full-text index updated?

533


What is the user of Primary key?

577


What is indexed view? How to create it?

595