Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between constraints and triggers?

Answer Posted / sairam

Both will be used to implement business rules.

Constraints will do memory location to table comparision.
where as triggers will do table to table comparision.
for this triggers will use magic tables(inserted,deleted).

In the order of precedence first Constraints next Triggers,
But performance wise triggers will give best performance
because table to table comparision is faster than memeory
location to table comparision.

Is This Answer Correct ?    17 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between views and stored procedures?

1029


What is repeatable read?

1093


Ways to improve the performance of a SQL Azure Database?

125


what is database replication? : Sql server database administration

1129


Can sql servers link to other servers?

1139


How to count groups returned with the group by clause in ms sql server?

1143


What are the five characteristics of good data?

973


Why you need indexing? Where that is stored and what you mean by schema object? For what purpose we are using view?

957


you notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it? : Sql server administration

1030


How to throw custom exception in Stored Procedure?

1096


What is the process of normalising?

1046


Explain how to integrate the ssrs reports in application?

1063


What are “lost updates”?

1043


How you can get a list of all the table constraints in a database?

999


What does REVERT do in SQL Server 2005?

1013