Any tips would be appreciate.
Adam.
The return value is the return value of the RPC call. The output
parameters must be declared in the RPC as being passed by reference. If
any of the output parameters are strings, you must preallocate space for
them equal to the longest length the output parm could be.
You could do it via embedded SQL keeping in mind that the return value and
all output parms are returned in a second result set. So, after executing
the sp and fetching until SQLCode = 100 (if there is no result set, this
should be the return value after the sp execution), then issue one more
fetch to get the return value and output parms in that order.
HTH,
steve