What is the difference between constraints and triggers?

Answer Posted / malini paul

1.Constraint is a statement about a database that is always
true.Whereas triggers constrain what a transaction can do.

2.Constrain applies to existing data in the table and any
statement that manipulates the table.Whereas Trigger does
not apply to data loaded before the trigger was created.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to view the error log for any specific instance? : sql server database administration

577


What is amo? : sql server analysis services, ssas

662


What is difference between rollback immediate and with no_wait during alter database?

575


How many types of functions are there in sql server?

457


Create a dts package to produce a text file using the ‘update statistics’ command for the tables in a database with obsolete statistics.

527






Can we use where clause in union?

588


Are null values the same as that of zero or a blank space?

570


How do I view a trc file?

500


What is partition in sql server?

525


What do you need to connect php to sql server?

535


Explain what is the difference between a local and a global temporary table?

511


What are the steps to insert a table?

538


What is the difference between Normalization and De-normalization?

556


What does the not null constraint do?

573


Does partitioning help performance?

527