.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Articles >> DataBase >> Post New Resource Bookmark and Share   

 Subscribe to Articles


Posted By:Deepika Haridas       Posted Date: September 29, 2009    Points: 10    Category: DataBase    URL: http://www.dotnetspark.com  

Triggers as you know is basically a group of SQL statements which will fire automatically on occurrence of insert, delete etc statements.

Normally a trigger fires based on the time and date settings provided.

There are two types of triggers :

1) AFTER TRIGGER - Fires the trigger only after procedure completes.
example - In shopping Malls some items have normal rates whereas some have discounts rated so depending on that conditions trigger will be fired.

2) Instead of Triggers - One procedure instead on other
example - Shopping cart where a person selects item and adds it to cart and goes back and selects another item and then adds to cart & after submitting it places the payment order and then it is inserted into the database. Now the items must be deleted from temporary table and session variables created when its use is over. So at that time a delete query is fired automatically.
 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend