title: Create a UDT that has SQL @tables as its members
body: <p>I wonder whether it is possible to create a CLR user-defined type in SQL Server 2008 members of which would be table variables.</p>
  
  <p>You know, you can declare a table variable:</p>
  
  <pre><code>declare @foo table (row_id int not null ... );
  </code></pre>
  
  <p>So I fancy a UDT with several members, each of which is a table defined that way (a different table, of course), so it'd be possible to say:</p>
  
  <pre><code>select id from @typed_var.table1 where ...
  </code></pre>
  
  <p>or</p>
  
  <pre><code>insert into @typed_var.table3(id) values (...)
  </code></pre>
  
  <p>I do have a feeling I want too much on this one, but can't seem to find a definite Yes or No on the Internet.<br>
  Is it possible at all?</p>