Conversion from type ‘DBNull’ to type ‘String’ is not valid
i am receiving this problem
i am receiving this problem
I have a table which contains null values and I need to get data from the table using SqlDataReader. I can’t figure out how I can safely cast DBNull to int.
I have a SQLDataReader that returns three integers. However, there are occasions when two of the integers will return null values.