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...

What is the difference between constraints and triggers?

Answer Posted / harshad more

Constraints are great at maintaining database integrity for
database fields and relationships between database tables.

Triggers are great for checking past vs. current values and
making decisions based on that data.

In my experience, it is usually much more favorable to use
constraints when possible and leave the trickier business
and auditing logic for use in triggers.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between sql temp table vs table variable?

862


What is nonclustered index with included columns ?

945


How to change the password of a login name in ms sql server?

999


What action plan is preferred if sql server is not responding?

1086


What are the parts of a function?

916


Does partitioning ssd reduce performance?

877


How do I start and stop sql server?

1004


How to create a view on an existing table in ms sql server?

1105


What are types of subqueries?

1036


How to delete multiple rows with one delete statement in ms sql server?

981


What is the difference between DATETIME2 and DATETIME?

1058


Characterize join and name diverse sorts of joins?

948


What is scrollable cursor?

1014


Does index speed up select statements?

999


What happens if null values are involved in bitwise operations?

993