You are here: Re: DBCC INPUTBUFFER results into table « MsSQL Server « IT news, forums, messages
Re: DBCC INPUTBUFFER results into table

Posted by tomas.zalesak on 05/10/07 12:52

> 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'

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

--
Tom
http://kbupdate.info/ | http://suppline.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация