Doing a table = reader.GetSchemaTable(); on sql server 2005 returns me a column DataTypeName to find out the datatype of my select statement.
Doing the same code on a oracle server returns me NO DataTypeName column.
How do you then get the datatype name for a column1 field using a select column1 from tablename statement ?
When using Oracle, DbDataReader.GetSchemaTable doesn't work.
You can use OracleDataReader.GetSchemaTable.
Another option would be to iterate thorugh DbDataReader fields, like this: