title: insert all columns From a Table to a Table Variable
body: <p>I'm using TSQL(SQL Server).</p>
  
  <p>I started using Table variables for lightweight operations.</p>
  
  <p>These are easy to use but I found populating these are a bit inconvenient or 
  I'm missing something.</p>
  
  <p>let's say I want to insert all rows from a table with 25 columns into a table variable.</p>
  
  <p>The only I could make it work was to Define a Table variable with all 25 columns defined in it and then do the insert.</p>
  
  <p>Is there a way that this can be done automatically? That is we don't define the columns inside temp table and they get generated dynamically onthe insert?</p>