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

Explain various On-Delete options in a DB table. Which is the default option?

1449


Which are the important points to note when multilanguage data is stored in a table?

973


What are the encryption mechanisms in sql server?

1008


What are filegroups in sql server?

1047


What are different type of Collation Sensitivity?

982


Can sub report data source be different from that of the parent report?

141


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

927


Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?

1050


what are the different ways of moving data/databases between servers and databases in sql server? : Sql server database administration

955


What is the return type of executeupdate ()?

887


How to loop through result set objects using odbc_fetch_row()?

952


What is 'Join' and explain its various types.

1117


How to connect Azure federated root database and apply federation in entity framework?

107


What is the difference between seek predicate and predicate?

1038


What stored procedure would you use to view lock information?

948