Can user-defined table-valued (or any other function) return table-type in SQL Server 2008?
Can user-defined table-valued (or any other function) return table-type in SQL Server 2008?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
At present, it does not seem to be possible to return a UDTT from a UDF. A UDF can return a table variable, or an inline table.
Returning an inline table:
Returning a table variable:
Those are the only types of TVFs at the moment.