Here\'s my user-defined table type...
CREATE TYPE [dbo].[FooType] AS TABLE( [Bar] [INT], )
This is what ive had to do in my table-valued f
Ok - so it cant be done.
Easy enough to duplicate the table definition in the return type (with the use of scripting).
Still - hopefully this issue gets rectified in the next version of SQL Server.