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 are various limitations of the views?

1051


What are the different types of collation sensitivity?

1121


Why Master database is required?

1141


How to use go command in "sqlcmd"?

1204


What the different components of Replication and what is their use?

1068


Write SQL queries on Self Join and Inner Join.

1154


Can we write a distributed query and get some data which is located on other server and oracle database?

1231


How to transfer a table from one schema to another?

1001


What are the rendering extensions of ssrs?

157


What it means to be triggered?

1004


Differentiate between a having clause and a where clause.

965


How do you send email on SQL Server?

1064


What are the basic functions for master, msdb, model, tempdb and resource databases?

986


How to use values from other tables in update statements in ms sql server?

1116


What stored by the tempdb ? : sql server database administration

1044