We were using the output parameter but never could get Brian's method to
work. We switched to putting to two fields into one variable and using
the select method with execute scalar.
Yuan Ren[MSFT] wrote:[color=blue]
> Hi CJ,
>
> Thanks for your post!
>
> From your description, my understanding is that the current stored
> procedure uses the select statement and returns one row which contains two
> columns. If I have misunderstood anything, please let me know.
>
> If you don't want to use the DataAdapter with the DataSet, I suggest you
> use the DataReader to instead of the DataAdapter. The following article
> from MSDN demonstrates how to use the DataReader :
>
http://msdn.microsoft.com/library/de...us/cpguide/htm
> l/cpcontheadonetdatareader.asp
>
> If the stored procedure uses the output parameter as the returned value,
> Brian's suggestion is appropriated.
>
> Hope this will be helpful!
>
> Regards,
>
> Yuan Ren [MSFT]
> Microsoft Online Support
>[/color]