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 TRIGGERS IN SQL? AND WHAT IS THE BENIFIT?

Answer Posted / subbarayudu

A Trigger is a block of code,fired whenever data in the underlying table is affected by any of the Data Manipulation Language (DML) statements -INSERT,UPDATE,OR DELETE.

whenever trigger fires,two special tables are created-
1.insert table 2.Delete table.

1.inserted table contains copy of all records that are insetred in the trigger table.
2.deleted table contains all records that have been deleted from trigger table.this table is used to refer old values.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sparse columns?

1063


explain different types of cursors? : Sql server database administration

1144


What is mapping schema?

1068


What is molap and its advantage? : sql server analysis services, ssas

1033


Explain sql server authentication modes?

1184


What do you understand by mirroring?

1044


How do I find the sql server database version?

1049


what is a major difference between sql server 6.5 and 7.0 platform wise? : Sql server database administration

944


Explain different backup plans?

1003


How to skip remaining statements in a loop block using continue statements?

1040


What are data files?

1091


What is a heap?

1082


What is the use of commit?

1056


What are advantages of ssrs or why we should use ssrs?

145


Write down the syntax and an example for create, rename and delete index?

1022