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

i have made a project i vb.net n created a .exe of it after installing it in to any pc, the database (sql express) is not geting accesed i.e the aplication cuts the link of the database, so plz help in this matter.

1903


Does full backup break log chain?

962


What is parameterized reports in ssrs ?

149


What is truncate table?

938


Why we need to use secondry database file? though, we can do same work using primary database file also.

6884


What is a result set object returned by odbc_exec()?

1028


Is it true that rules do not apply to data already existing in a database at the time the rule is created?

1042


how can you attach more than 20 ldf files in sql server

2000


What is the use of keyword with encryption. Create a store procedure with encryption?

960


What are the advantages of using a stored procedure?

1008


To automatically record the time on which the data was modified in a table, which data type should you choose for the column?

964


I create a separate index on each column of a table. What are the advantages and disadvantages of this approach? : Sql server database administration

1089


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

1068


What is in place upgrade in sql server?

1044


What is the difference between commit and rollback?

942