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 an indexed view?

949


how to invoke a trigger on demand? : Sql server database administration

1073


What is an indexing strategy?

997


What is the difference between function and stored procedure in sql server?

1056


What is database black box testing?

1027


How do you delete a data source?

1002


Define tool Manage Statistics in SQL Server 2000 query ?

1079


How except clause is differs from not in clause?

947


Does sql server 2000 clustering support load balancing?

960


What is the use of stored procedure?

933


what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

925


What is transaction server explicit transaction?

1027


Can you always create a cache of a report?

172


Can you create a logon trigger in sql server 2005 express edition?

1076


How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?

1089