![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Does anyone know if there is a simple way to get the results of a DBCC INPUTBUFFER() request into a table? I have a process for monitoring activity that will give me the results of sp_who2 into a temp table, and want to scroll through the active connections and get the input buffers into another table for review: Insert into #TmpWho exec sp_who2 'active' |
#3
| |||
| |||
|
|
CREATE TABLE #Inputbuffer( EventType NVARCHAR(30) NULL, Parameters INT NULL, EventInfo NVARCHAR(255) NULL ) GO INSERT #Inputbuffer EXEC('DBCC INPUTBUFFER(<YourSpid>)') GO SELECT * FROM #Inputbuffer |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |