How to get SqlDBType using ADO.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I am retrieving some records from SQLCE database and storing them in DataSet
I am trying to get database columns DataTypes

Using my_dataset.Mytable.My_column.DataType gives me System.Type, not SqlDbType

How I could get SqlDbType….

Any suggestions would be really appreciated

Thank you

Gre
 
Hi Greg,

You can't. DataSet (DataTable, DataColumn, ..) is database neutral.
You might check the default mapping, though, reading SqlDbType Enumeration
..net help topic.
 
Back
Top