tpoirier
12 years agoContributor
Calling a stored procedure
I am trying to call a stored procedure passing in several aruments and not having any success, with a trace I was able to find out that the parameter names were not being included when when the data i...
- 12 years agoFor a dataset this might work:
Instead of:
var test = SProc.Parameters.ParamByName("OnHand").value;
Log.Message(test);
Try this:
SProc.Open();
SProc.First();
while (! SProc.EOF)
{
Log.Message(SProc.FieldByName("OnHand").Value);
SProc.Next();
}
SProc.Close();