Results 1 to 3 of 3

Thread: Trigger

  1. #1
    Junior Member
    Join Date
    Mar 2008
    Answers
    1

    Question Trigger

    if trigger is written on after update and if i am updating 100 row how many time trigger will fier. will it affect performance of database? if so what is the solution


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Trigger

    Normal trigger fires only once on the event. For each row trigger fires once for each row.


  3. #3
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Re: Trigger

    Quote Originally Posted by goodstudent View Post
    if trigger is written on after update and if i am updating 100 row how many time trigger will fier. will it affect performance of database? if so what is the solution
    For each row option determines whether a trigger is row trigger or statement trigger.
    If you include for each row option in your trigger definition it fires 100 times otherwise it fires only once.

    Last edited by krishnaindia2007; 03-14-2008 at 06:05 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact