I have a tinyint column in the database and I wish to convert it to Int32 for an SqlDataReader.
tinyint
Int32
SqlDataReader
How do i go about it?
int RetValue; RetValue = (int)(byte)dt.Rows[A][B] // A = RowNo , B = 'tinyint' Column Name.