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

‘Order by’ is not allowed in a view how can you sort information from a view?

1013


Explain the database you used in your final year project?

966


How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.

3816


Distinguish between nested subquery and correlated subquery?

972


How to access the deleted record of an event?

972


What is log cache in sql server?

977


What area unit the various kinds of info compression introduced in sql server 2008?

1034


How to convert numeric expression data types by assignment operations?

999


Explain foreign key in sql server?

971


Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication

980


last function used in MS Access to convert sql what function will use in sql

2012


What do you understand by intent locks?

952


What is the dbcc command and why is it used?

992


How to apply filtering criteria at group level with the having clause in ms sql server?

943


Describe triggers features and limitations?

923