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

What is the difference between writing data to mirrored drives versus raid5 drives

716


What is the difference between primary key and unique constraints?

696


What keyword you will use to get schema appended to the result set of a ‘for xml’ query?

809


Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

2184


What are logical/boolean operations in ms sql server?

755


Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?

826


What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?

720


What are different types of statement?

692


What command is used to rename the database?

710


Suppose you want to implement the following relationships while designing tables. How would you do it?a.) One-to-oneb.) One-to-manyc.) Many-to-many

710


How to delete duplicate rows?

730


What are .mdf files?

706


Define candidate key, alternate key, and composite key.

712


Explain what are the restrictions that views have to follow? : SQL Server Architecture

823


How to find out the list schema name and table name for the database?

726