Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to set value to stored procedure from code behind. I know how to set parameter value individually. But in this case, i am not aware of number of parameters of stored procedure also not aware of name of parameters. I am aware of stored procedure only. How can i acheive this?
please help me. thanks in advance
Posted

1 solution

First you have to get a list of the parameters. Some methods are shown in e.g. http://stackoverflow.com/questions/3038364/get-stored-procedure-parameters-by-either-c-sharp-or-sql[^]
Then you can iterate thru the list and supply the appropriate values.
 
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