title: Can a dynamic table be returned by a function or stored procedure in SQL Server?
body: <p>I would like to call a stored procedure or user-defined function that returns a dynamic table that is created via a pivot expression. I don't know the number of columns up front. </p>
  
  <p>Is this possible? (I am not interested in temporary tables)</p>