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

When setting replication, is it possible to have a publisher as 64 bit sql server and distributor or subscribers as a 32 bit sql server?

600


What new changes are being made in SQL Server?

674


How can you insert null values in a column while inserting the data?

811


What are the five characteristics of good data?

596


What is page-level compression?

632






What are temporal tables in sql server 2016?

560


What are the disadvantages of merge replication?

874


Explain what is it unwise to create wide clustered index keys?

612


How will you know when statistics on a table are obsolete?

700


How you would rewrite the sql query to return the customerid sorted numerically?

664


Define Joins?

686


Write a query for primary key constraint with identity key word?

652


What function does a database engine serve in the sql server?

664


What are the properties and different types of sub-queries?

641


What is t-sql script to take database offline – take database online.

690