loop parameters collection and determine param type

M

martin

Hi,

I am writin a function to execute stored procedures.
The function gets passed an array with the values of the parameters and if
they are input out put params.
I attach these to the command onject no problem and execute the sp.

After execution I need to get back he values of the output parameters.
what I would like to do is
1. loop through the parameters collection.
2. determine whether the param is niput or output
3 determine the name of the parameter.
4. retrive the name of the parameter.
5. lastly retrieve the value of the parameter.

could any body please explain how I would go about doing steps 1 through 5
please.

many thanks in advance.

martin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top