sys.sysprocesses(stmt_start,stmt_end)

  • Hi Flocks,

    While execute below statement

    select * from sys.sysprocesses where dbid=db_id('abcedfgh') and spid=114

    There is two cloumns stmt_start,stmt_end. where i can find(table) for statements? using those two columns.

    Help me.

    Thanks,

    KK.

  • If you need the sql statement that executed you need to pass the sql_handle to sys.dm_exec_sql_text using cross apply. Check BOL for examples.

    "Keep Trying"

  • Thanks, I got it.

    KK

Viewing 3 posts - 1 through 2 (of 2 total)

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