|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is there a way to repress DBCC row counts?Hi,
I'm using DBCC like this: SET NOCOUNT ON DBCC ... WITH NO_INFOMSGS And I still get a row count. How to I repress the row count? Thanks, Bryan BDB wrote:
> Hi, You would need to dump the results to a temp table, assuming the DBCC > > I'm using DBCC like this: > > SET NOCOUNT ON > > DBCC ... WITH NO_INFOMSGS > > And I still get a row count. How to I repress the row count? > > Thanks, > Bryan command you are using support the WITH TABLERESULTS option. For example: create table #opentran(item varchar(128), description varchar(128)) Insert into #opentran Exec ('dbcc opentran(''pubs'') with tableresults') select * from #opentran drop table #opentran
Show quote
"David Gugick" <david.gugick-nospam@quest.com> wrote in message This works. Thank you!news:uRjFEqafFHA.2156@TK2MSFTNGP14.phx.gbl... > BDB wrote: >> Hi, >> >> I'm using DBCC like this: >> >> SET NOCOUNT ON >> >> DBCC ... WITH NO_INFOMSGS >> >> And I still get a row count. How to I repress the row count? >> >> Thanks, >> Bryan > > You would need to dump the results to a temp table, assuming the DBCC > command you are using support the WITH TABLERESULTS option. For example: > > create table #opentran(item varchar(128), description varchar(128)) > > Insert into #opentran > Exec ('dbcc opentran(''pubs'') with tableresults') > > select * from #opentran > > drop table #opentran > I don't think you can supress row count in DBCC output
-- Show quoteThanks Ravi "BDB" wrote: > Hi, > > I'm using DBCC like this: > > SET NOCOUNT ON > > DBCC ... WITH NO_INFOMSGS > > And I still get a row count. How to I repress the row count? > > Thanks, > Bryan > > > |
|||||||||||||||||||||||