title: How to create a table within a stored procedure using an attribute for the name of the table?
body: <p>That was a long Title but it says it all. I'm trying to make a procedure which creates a table. I want it to be possible to choose the name of the table by writing it in the parameter. I've cut down on some of my code so you can see my problem.</p>
  
  <p>I got so far, but it doesn't work - any ideas?</p>
  
  <pre><code>go 
  create proc newUser 
  @username varchar 
  as
  
  execute 'create table '@username'(
  id int,
  name varchar
  )'
  </code></pre>