Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Stored procedure with multiple parameters

Author  Topic 

anujpratap84
Starting Member

45 Posts

Posted - 2011-03-03 : 05:36:54
Hi All,

Can i pass numbers of parameter to stored procedure.
if i want to pass any number of parameter to SP but when i creating the SP i have no idea about number of parameters.

Anyone have any idea..
Thanks in advance..



Anuj Pratap Singh

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-03-03 : 05:43:57
No. You can't. The parameters of a stored procedure need to be pre-defined.

maybe this is relevant
http://vyaskn.tripod.com/passing_arrays_to_stored_procedures.htm
http://www.sommarskog.se/arrays-in-sql.html


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -