how to access an Output parameter in the old SQLHelper.cs class?

1.4k Views Asked by At

i'm currently modifying a legacy application that uses the SqlHelper class in c#. how do you access the OUTPUT value using an executedatareader?

1

There are 1 best solutions below

2
On BEST ANSWER

You need to pass a SqlParameter object with the correct name, then check the parameter's value after calling ExecuteDataReader.