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...

Which is better in performance - CONSTRAINT or TRIGGER over
a column which restricts say an input of particular value
in a column of a table?

Answer Posted / monal

Constraints gets evaluated before statement can be either
inserted or deleted or updated. While trigger executes
after or at the same time statement is executing. So if you
have to roll back transactio because transaction not
meeting condition there is no overhead when you are using
constraint ,but if you have to roll back transaction and
you have a trigger on that table or column either 1
transaction goes through before rolling back. So basically
trigger consumes more resources.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the return type of executeupdate ()?

909


You are doing log shipping due to some reasons it is failing. How you will proceed from there

2072


What are transactions in sql?

1069


What are indexes in sql?

1288


How to view the error log for any specific instance? : sql server database administration

1046


How to find the version of sql server? : sql server database administration

1119


What is enhanced database mirroring in sql server 2008?

976


What is the parse query button used for?

1042


What are the three different part of rdl file explain them?

269


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

1055


What is function of ROLLUP ?

1090


How to retrieve error messages using mssql_get_last_message()?

1058


Your table has a large character field there are queries that use this field in their search clause what should you do?

886


How to list all schemas in a database?

1065


What are the types of dml?

983