Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2008
    Posts
    9

    Unanswered: sql query to find statement currently executing in sp

    Hi,

    After running dbcc inputbuffer() , I get only the stored procedure that is executing, but not the exact statement that is running within that stored procedure. Please provide sql query to find statement currently executing in stored procedure.

    Thanks

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    have you tried running a trace?
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Jul 2008
    Posts
    9
    Running a trace would definately serve my requirement.. However my concern is to get the sql query that will let me know which statement is currently executing in a particular sp.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •