Linking TypeCode and SqlDbType or DbType
See the question and my original answer on StackOverflowHere is a trick to get the SqlDbType value for any given object. (It's not based on the TypeCode):
// create an SQL Parameter object
SqlParameter p = new SqlParameter("dummy", myObj);
// ask SQL code to compute its SqlDbType for us
Console.WriteLine(p.SqlDbType);