Click here to Skip to main content
15,888,301 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi everyone
how i can create procedure take array parameter in
sql server 2005

thanks for any help
Posted

This situation is usually handled by passing a delimited string, "1,2,3,4" then parsing it into inividual components in the stored proc with string handling methods. There are good number of examples for this.

Another method, if you can use it, is to created a .net managed stored proc since .net of course has better string manipulation capabilities than tsql
 
Share this answer
 
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...
For example, I fed your question subject into Google and it suggested this article on this site:

Array Parameter Handling in a Stored Procedure[^]

Now, why couldn't you do that?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900