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 is the difference between push and pull subscription? : sql server replication

1148


What is the default Port No on which SQL Server listens?

1067


Where are SQL server users names and passwords are stored in sql server?

1196


What is difference between inner join and join?

982


What are the types of processing and explain each? : sql server analysis services, ssas

1104


How to override dml statements with triggers?

1069


What is lock escalation and what is its purpose?

921


What is the usage of the sign function?

997


How to create function with parameter in sql server?

1039


What are the advantages of having an index on the sql server?

872


What are the character string functions supported by sql server 2005?

933


Explain what are magic tables in sql server?

947


What is difference in performance between insert top (n) into table and using top with insert?

969


What is trigger and different types of Triggers?

1068


What does dml stand for?

904