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

Do you know what are the restrictions applicable while creating views? : SQL Server Architecture

989


What are the encryption mechanisms in sql server?

1018


What is meant by Active-Passive and Active-Active clustering setup?

1160


How to set database to be read_only in ms sql server?

997


Delete duplicate rows without using rowid.

1530


How many types of the database links?

1062


Explain the steps to use transact-sql cursor?

1044


Does group by sort data?

888


What are diverse clauses that form a part of sql?

1063


What are the components of sql server service broker?

1005


List the different index configurations possible for a table?

928


You accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover?

981


Define ACID properties in a Database?

1049


How you can change a cross join into an inner join?

956


Is sql server difficult to learn?

910