Returns the “current output” buffer in hexadecimal and ASCII format for the specified system process ID (SPID).
DBCC OUTPUTBUFFER (spid)
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.
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.
01fb8048: 74 00 65 00 72 00 ab 60 00 45 16 00 00 01 00 25 t.e.r..`.E.....%
01fb8058: 00 43 00 68 00 61 00 6e 00 67 00 65 00 64 00 20 .C.h.a.n.g.e.d.
01fb8068: 00 64 00 61 00 74 00 61 00 62 00 61 00 73 00 65 .d.a.t.a.b.a.s.e
01fb8078: 00 20 00 63 00 6f 00 6e 00 74 00 65 00 78 00 74 . .c.o.n.t.e.x.t
01fb8088: 00 20 00 74 00 6f 00 20 00 27 00 6d 00 61 00 73 . .t.o. .'.m.a.s
01fb8098: 00 74 00 65 00 72 00 27 00 2e 00 05 42 00 55 00 .t.e.r.'....B.U.
01fb80a8: 47 00 53 00 59 00 00 02 00 fd 01 00 e2 00 00 00 G.S.Y...........
01fb80b8: 00 00 fd 11 00 c1 00 01 00 00 00 79 00 00 00 00 ...........y....
01fb80c8: ac 0d 00 00 01 00 00 00 00 26 04 04 1c 00 00 00 .........&......
01fb80d8: fe 01 00 e0 00 00 00 00 00 81 06 00 00 00 01 00 ................
01fb80e8: 6a 11 00 00 0a 45 00 76 00 65 00 6e 00 74 00 43 j....E.v.e.n.t.C
01fb80f8: 00 6c 00 61 00 73 00 73 00 00 00 01 00 6a 11 00 .l.a.s.s.....j..
01fb8108: 00 0c 43 00 6f 00 6e 00 6e 00 65 00 63 00 74 00 ..C.o.n.n.e.c.t.
01fb8118: 69 00 6f 00 6e 00 49 00 64 00 00 00 01 00 e7 1e i.o.n.I.d.......
01fb8128: 00 06 4e 00 54 00 55 00 73 00 65 00 72 00 00 00 ..N.T.U.s.e.r...
01fb8138: 01 00 e7 40 00 04 48 00 6f 00 73 00 74 00 00 00 ...@..H.o.s.t...
01fb8148: 01 00 e7 40 00 0b 41 00 70 00 70 00 6c 00 69 00 ...@..A.p.p.l.i.
01fb8158: 63 00 61 00 74 00 69 00 6f 00 6e 00 00 00 01 00 c.a.t.i.o.n.....
01fb8168: 6f 08 09 53 00 74 00 61 00 72 00 74 00 54 00 69 o..S.t.a.r.t.T.i
01fb8178: 00 6d 00 65 00 d1 00 00 ff ff ff ff ff ff 00 d1 .m.e............
01fb8188: 04 44 00 00 00 00 00 d1 04 45 00 00 00 00 00 d1 .D.......E......
01fb8198: 04 46 00 00 00 00 00 d1 04 47 00 00 00 00 00 d1 .F.......G......
01fb81a8: 04 48 00 00 00 00 00 d1 04 49 00 00 00 00 00 d1 .H.......I......
01fb81b8: 04 4a 00 00 00 00 00 ff 11 00 00 00 4b 00 00 00 .J..........K...
01fb81c8: 79 00 00 00 00 fe 00 00 e0 00 00 00 00 00 00 d1 y...............
01fb81d8: 04 0f 00 00 00 00 00 d1 04 10 00 00 00 00 00 d1 ................
01fb81e8: 04 11 00 00 00 00 00 d1 04 12 00 00 00 00 00 d1 ................
01fb81f8: 04 13 00 00 00 00 00 d1 04 14 00 00 00 00 00 d1 ................
01fb8208: 04 15 00 00 00 00 00 d1 04 16 00 00 00 00 00 d1 ................
01fb8218: 04 17 00 00 00 00 00 d1 04 18 00 00 00 00 00 d1 ................
01fb8228: .
(33 row(s) affected)
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC OUTPUTBUFFER permissions default to members of the sysadmin fixed server role only, who can see any SPID. Other users can see any SPID they own. Permissions are not transferable.
This example returns current output buffer information for an assumed SPID of 13.
DBCC OUTPUTBUFFER (13)
sp_who | DBCC |
Trace Flags |