Question : easy for experts.

I have a sp that at the end I have this code
updated is bit and returnMessage is varchar
select @updated as updated, @returnMessage as message

but then on cs code I am using Execute Reader and using while loop to get the value of the updated and the message but gives me error saying {updated}
I say like this on while loop after executing reader
if (bool.Parse(reader["updated"].ToString()) == false)     -->> Catches error here.
...blah blah...

what am I doing wrong..?
I am trying to find the value of the updated and the of course message.

Answer : easy for experts.

also, you can skip the first two by

dataReader.NextResult()
dataReader.NextResult()

Random Solutions  
 
programming4us programming4us