whats the difference between a stored procedure and a table valued function?
they seem to serve the same functions
whats the difference between a stored procedure and a table valued function? they seem
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.
Table-valued functions can return only a single result set; SPs can return multiple result sets.
You can subsequently query over the results of table-valued functions – but not with SPs.
So table-valued functions are more flexible if you don’t need multiple result sets.