Getting a Stored Procedure to wait 20 seconds

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mch1ck3y
    New Member
    • Sep 2007
    • 2

    Getting a Stored Procedure to wait 20 seconds

    Hello there - hoping someone can offer some advice.

    I am using SQL Server 2000 and want a stored procedure to execute 20 seconds after a particular field on a table is updated using a trigger on the table to be updated. Any ideas on how this would be achievable - any help would be greatly appreciated.
  • azimmer
    Recognized Expert New Member
    • Jul 2007
    • 200

    #2
    Originally posted by mch1ck3y
    Hello there - hoping someone can offer some advice.

    I am using SQL Server 2000 and want a stored procedure to execute 20 seconds after a particular field on a table is updated using a trigger on the table to be updated. Any ideas on how this would be achievable - any help would be greatly appreciated.
    SQL Server has a 'WAITFOR' command; I suggest you read its help.

    Comment

    • ck9663
      Recognized Expert Specialist
      • Jun 2007
      • 2878

      #3
      Originally posted by mch1ck3y
      Hello there - hoping someone can offer some advice.

      I am using SQL Server 2000 and want a stored procedure to execute 20 seconds after a particular field on a table is updated using a trigger on the table to be updated. Any ideas on how this would be achievable - any help would be greatly appreciated.

      check the sample here:

      http://www.thescripts. com/forum/thread701580.ht ml

      Comment

      • mch1ck3y
        New Member
        • Sep 2007
        • 2

        #4
        Originally posted by azimmer
        SQL Server has a 'WAITFOR' command; I suggest you read its help.
        cheers - much appreciated

        Comment

        Working...