SQL Server 2008 - How do i return a User-Defined Table Type from a Table-Valued Function?

后端 未结 4 1217
星月不相逢
星月不相逢 2020-11-29 10:14

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

4条回答
  •  青春惊慌失措
    2020-11-29 10:38

    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.

提交回复
热议问题