A
Arnie Mauer
Using VS 2005 and C# and the OleDb components. The OleDbConnection
works fine as does the OleDbCommand object with a simple select
against an Oracle 9i DB. However when The code below is executed on
the first row, I get an exception saying the number to be cast has to
be less than infinity. I know for a fact its 2. The column is
defined as a NUMBER(5) in Oracle. I've tried to 'Get' float, double,
value. All with the same result.
if (!q.IsDBNull(2))
short s = (short) q.GetInt16(2);
- Arnie
works fine as does the OleDbCommand object with a simple select
against an Oracle 9i DB. However when The code below is executed on
the first row, I get an exception saying the number to be cast has to
be less than infinity. I know for a fact its 2. The column is
defined as a NUMBER(5) in Oracle. I've tried to 'Get' float, double,
value. All with the same result.
if (!q.IsDBNull(2))
short s = (short) q.GetInt16(2);
- Arnie