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

Your table has a large character field there are queries that use this field in their search clause what should you do?

884


What are the different editions available in sql server 2000?

1052


What is shared lock?

901


Explain the stored procedure?

1053


Which is the latest version of sql server and when it is released?

1112


What is clustered vs nonclustered index?

946


What is sql server database?

1009


explain different levels of normalization? : Sql server database administration

1003


Can we hide the definition of a stored procedure from a use?

1222


What is the function of inner join?

1072


Can we do dml on views?

952


How do you troubleshoot errors in a SQL Server Agent Job?

1059


How to apply filtering criteria at group level with the having clause in ms sql server?

1002


Explain features and concepts of analysis services?

976


Does a sql server 2005 select statement require a from?

1018