I’m getting an invalid cast exception but I’m not sure why, here is the list of my conversions:
SQL -> VB.NET char(4) -> String varchar(50) -> String tinyint -> Integer char(1) -> Char bit -> boolean smallint -> Integer smallmoney -> Double int -> Integer datetime -> datetime
It’s possible that
smallmoneyshould go toDecimalinstead… but why not just use a binary chop to try the first half, then the second etc to narrow down what’s causing the problem?If you could post the query involved, that would help too.