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

How to filter out duplications in the returning rows in ms sql server?

640


What is the significance of master, tempdb and model databases?

531


How can you append an identity column to a temporary table?

451


How can we remove orphan records from a table?

529


Is sql different from sql server?

517






Can you explain what are various ways to enhance the ssrs report?

585


What is the difference between composite index and covering index?

517


Tell me what are cursors and when they are useful?

511


What happens if the update subquery returns no rows in ms sql server?

593


Explain primary key, foreign key and unique key?

548


What is an indexing strategy?

538


What are the types of joins in sql?

563


What is the cartesian product of the table?

554


Is oracle faster than sql server?

557


What command is used to delete a table from the database in the sql server and how?

547