I've written a module in my sql helper class which returns DataSet from the stored procedure.
// public class SqlHelper
public DataSet ExecuteDataSet(string commandText, SqlParameter[] sqlParameter)
{
SqlCommand cmd = new SqlCommand(commandText, this.conn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddRange(sqlParameter);
SqlDataAdapter sda = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
sda.Fill(ds);
return ds;
}
But my stored procedure has multiple return outputs. My above module is not working with procedure having output values.
How can I write a module in sql helper class that can handle outputs from the stored procedure.