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

How to use order by with union operators in ms sql server?

1065


What does it mean if @@cursor_row returns a negative number?

1036


Explain the working of sql privileges?

1143


How to list all field names in the result set using mssql_field_name()?

951


what's sql server? : Sql server database administration

1051


What is the difference between a local and a global temporary table?

1174


How to perform key word search in tables?

1002


What is sql injection? How to protect against sql injection attack?

1038


Why is there a performance difference between two similar queries where one uses union and the other uses union all?

1086


What is the Disadvantage of indexed sequential file.

1129


What is the difference between the application object and session object?

1121


What is the function of inner join?

1126


What is executereader?

1003


What is a synonym for manipulation?

1046


How to assign null values to variables or columns?

1027