title: how to create Database server space report on SQL using Command DIR
body: <p>I need help to Improve Space Check report for the database Server. This is my code;</p>
  
  <pre><code>declare @cmd varchar (max) ='exec xp_cmdshell'' DIR "C:\" '''
  
  declare @vrb_Table table (id int identity , dtl varchar(max))
  
  insert @vrb_Table
  exec (@cmd)
  
  select * from @vrb_Table 
  </code></pre>