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

Explain steps of normalization?

939


Do you know what is replace and stuff function in sql server?

939


What is stored in the mssqlsystemresource database? : sql server database administration

986


How to test a dml trigger in ms sql server?

985


What is lock escalation? : sql server database administration

1101


How to set the current database in ms sql server?

1008


What is function of master database?

114


What is the difference between grant and with grant while giving permissions to the user?

897


How to provide default values to stored procedure parameters?

1002


What is difference between commit and rollback when used in transactions?

902


What is the difference between cartesian product and cross join?

812


Define the one-to-one relationship while designing tables.

855


How except clause is differs from not in clause?

894


Some queries related to SQL

933


State a few properties of relational databases?

1060