DBCC OUTPUTBUFFER in Microsoft SQL Server

DBCC OUTPUTBUFFER

Returns the current output buffer in hexadecimal and ASCII format for the specified system process ID (SPID).

Syntax

DBCC OUTPUTBUFFER ( spid )

Arguments
Spid :Is the system process ID for the user connection as displayed in the output of the sp_who system stored procedure.

Remarks
When you use DBCC OUTPUTBUFFER, DBCC OUTPUTBUFFER displays the results sent to the specified client (spid). For processes that do not contain output streams, an error message is returned.

To show the statement executed that returned the results displayed by DBCC OUTPUTBUFFER, execute DBCC INPUTBUFFER.

Result Sets

DBCC OUTPUTBUFFER returns this result set (values may vary):

Output Buffer
------------------------------------------------------------------------
01fb8028:  04 00 01 5f 00 00 00 00 e3 1b 00 01 06 6d 00 61  ..._.........m.a
01fb8038:  00 73 00 74 00 65 00 72 00 06 6d 00 61 00 73 00  .s.t.e.r..m.a.s.
'...'
01fb8218:  04 17 00 00 00 00 00 d1 04 18 00 00 00 00 00 d1  ................

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s