Strange problem with DataReader?

Have you tried to read with named argument: int col2 = int. Parse(reader"Col2".ToString());?

I am facing a strange issue with DataReader. I am using OdbcClient with a legacy rdbms system. I am sending follwing command to the database.

However in certain cases when I iterate it through DataReader as shown below. I get the Col2 value as DBNull inspite of the fact that I have value in the Col2 column in the database. I am getting the values of Col1 and Col3 correctly.

Have you tried to read with named argument.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions