SQL - SQL SERVER Trace View


DBA can use it to view trace information in more readable format

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