title: Dynamic creation of table in tsql
body: <p>I am trying to create a temptable dynamically in tsql . I have a query which gives me some data (as a result of another dynamic query ) in a column. For example say years like <strong>2011/2012</strong> . This will be in a column. What i want is to pick value of each row and name it as a column name of type int. 
  Later , i can use that temp table to dump data into it.</p>
  
  <p>Any suggestions?</p>