Once you set up the params and pass them into the block, you can pull the
values back off. Your setup should be something like this:
//The params are set above. This makes the param array
SqlParameter[] oParms = { param1, param2, param3);
oRes = SqlHelper.ExecuteNonQuery(cn, CommandType.StoredProcedure,
"verifyCPIandBatchId_sp", oParms);
//Assuming 2 and 3 are output
int MyOutputVal1 = param2.Value;
int MyOutputVal2 = param3.Value;
--
Gregory A. Beamer
MVP; MCP: +I, SD, SE, DBA
*************************************************
Think outside the box!
*************************************************
Robert said:
Thank you very much. One last question. I created the param array and
tested the stored proc in query analyzer. The stored proc works as desired,
returning the 2 output parms I need. Here is my call to SqlHelper. How do I
get the return values out of the oRes object?
object oRes = new object;
oRes = SqlHelper.ExecuteNonQuery(cn, CommandType.StoredProcedure,
"verifyCPIandBatchId_sp",
oParms);
Robert