title: Get Table and Index storage size in sql server
body: <p>I want to get table data and index space for every table in my database:</p>
  
  <pre><code>Table Name             Data Space           Index Space
  -------------------------------------------------------
  </code></pre>
  
  <p>How can I achieve this result?</p>