SqlDataReader.GetSqlType() of column
I ran into an interesting problem today that required me to identify the SqlType of any given column, so that I could do special processing where appropriate. It normally wouldn't be such a big deal, because you can call GetType(i) to learn whether it's a string, boolean, DateTime, etc. However, there are some types that need to be differentiated further: for example, money and numbers in SQL might both map to the same .NET type.



