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 / jerry joseph

Restricting the input using CONSTRAINT will have better
performance but there is a limit to the types of constraints
which we can provide..

With TRIGGERS you have more flexibility and provide a more
variety restrictions to the input.. for example you can
prevent a normal delete and make it a soft delete by setting
an IsDeleted flag using trigger.. we cant have that kind of
flexibility using Constraints..

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a trace frag?

1085


Explain log shipping?

1017


How you can change the database name in SQL SERVER?

1192


Explain the properties of sub-query in sql server?

1018


How do I find the sql server version?

1025


Explain what is the difference between a local and a global temporary table?

1003


What are the new scripting capabilities of ssms? : sql server management studio

1067


How to execute the cursor queries with "open" statements?

1180


What is hot add cpu in sql server 2008?

928


How to search for a string in all stored procedure in sql server?

999


What is provisioning, billing and metering, and connection routing concepts in the service layer?

113


How to run sql server 2005 books online on your local system?

961


Can you force a query to use a specific index?

945


Working with TLogs

1832


How do I start and stop sql server?

1020