title: How to catch the output of a DBCC-Statement in a temptable
body: <p>I tried the following on SQL-Server:</p>
  
  <pre><code>create table #TmpLOGSPACE(
    DatabaseName varchar(100)
    , LOGSIZE_MB decimal(18, 9)
    , LOGSPACE_USED decimal(18, 9)
    ,  LOGSTATUS decimal(18, 9)) 
  
  insert #TmpLOGSPACE(DatabaseName, LOGSIZE_MB, LOGSPACE_USED, LOGSTATUS) 
  DBCC SQLPERF(LOGSPACE);
  </code></pre>
  
  <p>...but this rises an syntax-error...</p>
  
  <p>Any sugestions?</p>