I am writing a method which will call a stored procedure. This stored Procedure will return a dataset which contains an attributes. I need to change the value of one particular attribute. My code is something like this.
try
{
cmdPendingStatus.CommandType = CommandType.StoredProcedure;
SqlDataReader pendingStatusList;
List<string> lstPendingRequestId = new List<string>();
try
{
conn.Open();
pendingStatusList = cmdPendingStatus.ExecuteReader();
if (pendingStatusList.HasRows)
{
while (pendingStatusList.Read())
{
lstPendingRequestId.Add(pendingStatusList.GetString(0));
}
}
}