title: Stored procedure to insert values into dynamic table
body: <p>I was wondering if I can make a stored procedure that insert values into dynamic table.</p>
  
  <p>I tried </p>
  
  <pre><code>create procedure asd
  (@table varchar(10), @id int)
  as
  begin
      insert into @table values (@id)
  end
  </code></pre>
  
  <p>also defining <code>@table</code> as table var</p>
  
  <p>Thanks for your help!</p>