Hello there...
I have an ODBC DataReader connected to an Oracle DB. It seems to work all right most of the time, but in one case I need to read data from a table that has null values in a Date field. When the DataReader hits that, I'm getting a conversion error saying conversion from type DBNull to type 'Date' is not valid.
The SQL string I'm using to get the data is quite simple, "SELECT * FROM USERS". Is there some way I can structure this to ignore the nulls, or present them some other way (such as empty strings, or a literal I can read and work around?
Thanks for any help you can offer.
CraigHartz
I have an ODBC DataReader connected to an Oracle DB. It seems to work all right most of the time, but in one case I need to read data from a table that has null values in a Date field. When the DataReader hits that, I'm getting a conversion error saying conversion from type DBNull to type 'Date' is not valid.
The SQL string I'm using to get the data is quite simple, "SELECT * FROM USERS". Is there some way I can structure this to ignore the nulls, or present them some other way (such as empty strings, or a literal I can read and work around?
Thanks for any help you can offer.
CraigHartz