dbcc inputbuffer doesn't providefull stmt?

  • How can I capture the full sql stmt if I have spid that is blocking? I use dbcc inputbuffer but getting truncated after 255 characters. neone with ne script or way to get full stmt? thanks!

  • Found it but doesn't work all time. as long as its in cache.

    DECLARE @Handle binary(20)

    SELECT @Handle = sql_handle

    FROM master.dbo.sysprocesses

    WHERE spid = spid#

    SELECT *

    FROM ::fn_get_sql(@Handle)

  • Try capturing the results of dbcc inputbuffer to text

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply