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...
Getting started with SQL Server
Hi,
I'm not sure but you mean something like this:
-- 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..