declare @spid int;declare @sql_handle binary(20);set @spid = 437SELECT @sql_handle = sql_handleFROM sysprocesses As A with (nolock)where spid = @spidselect textfrom ::fn_get_sql(@sql_handle)