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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top