HarleyRider


Anyone know where I can find the "TableResults" table definition in order to create a table for the DBCC command I can't seem to find it in BOL...


Re: DBCC TableResults

tosc


Hi,

I'm not sure but you mean something like this:

Code Snippet

-- Create the table to accept the results.
CREATE TABLE #tracestatus (
TraceFlag int,
Status int
)

-- Execute the command, putting the results in the table.
INSERT INTO #tracestatus
EXEC ('DBCC TRACESTATUS (-1) WITH NO_INFOMSGS')

-- Display the results.
SELECT *
FROM #tracestatus
GO

http://msdn2.microsoft.com/en-us/library/ms175008.aspx - When TABLERESULTS is specified, DBCC SHOWCONTIG returns the following columns and also the nine columns described in the previous table..







Re: DBCC TableResults

Jens K. Suessmeyer

Not all results of the DBCC commands are described in detail. If you are not regering to the information of TRACEStatus only, you will have to figure out that for yourself.

Jens K. Suessmeyer

---
http://www.sqlserver2005.de
---