• Like this:

    insert #t exec('dbcc inputbuffer(' + '@who_spid' + ')')

    ?