I can't understand this. The code below always returns zero, even though when I run the same sql in sqlplus, I get the correct value. We just upgraded to Oracle 11g from 10g, and the code worked in 10g. What on earth could be going on?
_Sql = "SELECT Count(ObjectId) FROM AOR_MV_DEV WHERE CASE_NUMBER = 'S101-118'";
OracleCommand _Cmd = new OracleCommand(_Sql, _Cnxn);
_Cmd.CommandText = _Sql;
_reader = _Cmd.ExecuteReader();
_reader.Read();
vColumnValue = _reader.GetDecimal(0);
_reader[0]to see what the true type returned is?