I want to pass a table as a parameter to a stored procedure. Is it possible to do it.
Please give some example.
I want to pass a table as a parameter to a stored procedure. Is
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.
In SQL Server 2008 you can use Table Valued Parameters – pass in a TABLE type as a parameter to a sproc.
I wrote up an article on the differences of the various approaches you could take, with a performance comparison here: CSV vs XML vs Table Valued Parameter