Viewing post 1 (of 1 total)
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)
August 27, 2009 at 1:33 am
#1045363