Hi,
How to define and declare array variable in store procedure.
How to define array variable in store procedure
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted May 20, 2011, 7:27 AM EDT
Posted May 20, 2011, 8:07 AM EDT
There is no array datatype in sql server and as a work around you can use temp table or table level variable to store list of records.
AartiRank #2,383 · 594 reputationPosted Nov 17, 2011, 3:24 AM EST
Please refer below link. i hope it will help you.
http://weblogs.sqlteam.com/jeffs/archive/2007/06/26/passing-an-array-or-table-parameter-to-a-stored-procedure.aspx
Thanks.