Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: sp_execute

    Correct tsql as following:

    DECLARE @Handle binary(20)

    select @Handle = plan_handle from sys.dm_exec_requests where session_id=@@spid

    select * from sys.dm_exec_sql_text(@HANDLE)

Viewing post 1 (of 1 total)