title: TSQL table variable initialization
body: <p>I have the following TSQL table variable:</p>
  
  <pre><code>declare @NumDaysMonth table
  (
     month_id smallint,
     num_days smallint
  )
  </code></pre>
  
  <p>I just want a quick look-up for the number of days in each month. How can I initialize this table like a C array:</p>
  
  <pre><code>int numDaysMonth[] = {31, 28, 30, ... , 31};
  </code></pre>