How can I send array to stored procedure?
I want send it from JS to stored procedure. And what is the best data format for this task?
How can I send array to stored procedure? I want send it from JS
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.
SQL 2008 supports table valued parameters – so you can pass a table of data as a parameter to a sproc. The common ways prior to this, were as mentioned already – via a CSV or XML parameter.
MSDN Reference