Passing multiple parameters to Stored Procedure

T

Terry

A Stored Procedure spPermissionsInsert inserts a record into a table and
returns a value @ReturnVal on completion. The code used returns an error that
the first parameter (and presumably the subsequent parameters) has not been
specified. Many examples are available for passing single parameters but not
multiple parameters.
1. Is it necessary to declare multiple parameters or can a single parameter
be used and redefined?
2. How do you get the return value?
3. Where can an example for multiple parameters be found?
Code used:
For i = 1 To 8
Set parm(i) = cmd.CreateParameter()
parm(i).Name = sParmName(i)
parm(i).Type = adTinyInt
cmd.Parameters.Append parm(i)
parm(i).Value = ParmVal(i)
Next
Thank you
Terry
 

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

Top