Time bound triggers

  • Hi,

    do we have any time bound triggers in sql server 2005 ie they should get execute at particular point of time.

    Thanks

    Chandra Mohan N

    [font="Verdana"]Thanks
    Chandra Mohan[/font]

  • There is no time bound triggers as for my knowledge. But what is your requirement, can you explain more.

  • There is no such trigger. You can use Job instead.

    Regards,
    Nitin

  • Hey .. I got an idea...

    Try using

    WAITFOR

    {

    DELAY 'time_to_pass'

    | TIME 'time_to_execute'

    | [ ( receive_statement ) | ( get_conversation_group_statement ) ]

    [ , TIMEOUT timeout ]

    }

    you can execute the trigger at specified time. Use this inside your trigger.

    I dont know how it works.

    I hope it will help you.

  • brainy (1/23/2009)


    Hey .. I got an idea...

    Try using

    WAITFOR

    {

    DELAY 'time_to_pass'

    | TIME 'time_to_execute'

    | [ ( receive_statement ) | ( get_conversation_group_statement ) ]

    [ , TIMEOUT timeout ]

    }

    you can execute the trigger at specified time. Use this inside your trigger.

    I dont know how it works.

    I hope it will help you.

    Nooooooo! Please do not use the WaitFor statement in a trigger, it WILL KILL your system.

    Explain what you need to do and we will suggest solutions.

  • I am agree with Jack. WAITFOR.... will kill the system as it will not complete the transaction until trigger gets executed. (correct me if I am wrong).

    Chandramohann,

    I guess your purpose is to perform some operation like clearing something (delete some temp data..etc..). then you can use Jobs. If not then please let us know why do you want time bound trigger?

    Regards,
    Nitin

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply