Home All Groups Group Topic Archive Search About
Author
1 Jul 2006 8:39 AM
Vikram
Hi,

I want to store DBCC inputbuffer value in a variable and then want to
comapare the value.
How ca i store the value in a variable or table inside a script?

Author
1 Jul 2006 9:06 AM
Omnibuzz
You can try this...

create table #temp (eventType varchar(100),parameters int, EventInfo
nvarchar(200))
insert into #temp exec('dbcc inputbuffer (' + @@spid + ')')
select * from #temp
drop table #temp

Hope this helps.
--
-Omnibuzz (The SQL GC)

http://omnibuzz-sql.blogspot.com/

AddThis Social Bookmark Button