• i just tired it seemed fine to me

    Try anything above 50 and see if this works.

    Maybe not working for < 50 as this is system processes.

    DECLARE @Handle binary(20)

    SELECT @Handle = sql_handle FROM master.dbo.sysprocesses WHERE spid = 51

    SELECT * FROM ::fn_get_sql(@Handle)