I have a DataTable obtained from a SQL DataBase, like this:
using (SqlCommand cmd = new SqlCommand(query, _sqlserverDB)) { using (SqlDataAdapter adapter
If you are using DataReader -
SqlDataReader reader = cmd.ExecuteReader(); reader.GetDataTypeName(int ordinal)
should work if you want the SQL data type of a column