Put a break on it, then set a watch for dataReader[0]. It will tell you what
type it actually is. An int should be Int32, though, as you said.
"mavrick_101" <ma********@discussions.microsoft.comwrote in message
news:D7**********************************@microsof t.com...
Hi,
How can I get value of a SQL column defined as int.
I try
int myInt = dataReader.GetInt32(0);
I get invalid cast exception and same for
GetInt16...
whats the best way?
Thnx