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 singh

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 ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to copy the tables, schema and views from one sql server to another?

1028


What is 2nf normalization?

1002


Explain timestamp datatype?

950


Mention the different authentication modes in sql server.

1019


How many types of subqueries are there in sql server?

973


Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?

999


How do I start sql server?

957


How many partitions a clustered index has by default in sql server 2012?

1073


What is catalog views?

1057


What is a Join and explain its types?

1083


Why is the need for data conversion transformations?

1033


What is transact-sql language?

1056


Can we call future method from trigger?

918


How do you improve the performance of a SQL Azure Database?

137


Explain what are various ways to enhance the ssrs report?

1028