HighTechTalks DotNet Forums  

What DataColumn.DataType do each of the SQL types map to?

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss What DataColumn.DataType do each of the SQL types map to? in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Nathan Sokalski
 
Posts: n/a

Default What DataColumn.DataType do each of the SQL types map to? - 12-23-2007 , 10:33 PM






When a DataTable is filled using something such as a DataAdapter, what
values are assigned to each of the DataColumns' DataType property for the
different SQL types? Thanks.
--
Nathan Sokalski
njsokalski (AT) hotmail (DOT) com
http://www.nathansokalski.com/



Reply With Quote
  #2  
Old   
Mark Rae [MVP]
 
Posts: n/a

Default Re: What DataColumn.DataType do each of the SQL types map to? - 12-23-2007 , 10:52 PM






"Nathan Sokalski" <njsokalski (AT) hotmail (DOT) com> wrote


[cross-posting removed]

Quote:
When a DataTable is filled using something such as a DataAdapter, what
values are assigned to each of the DataColumns' DataType property for the
different SQL types? Thanks.
http://www.google.co.uk/search?sourc...T+datatype+SQL


--
Mark Rae
ASP.NET MVP
http://www.markrae.net



Reply With Quote
  #3  
Old   
 
Posts: n/a

Default Re: What DataColumn.DataType do each of the SQL types map to? - 12-26-2007 , 04:45 AM



Hi,

the .NET data types are asigned, because if you load data by adapter,
it's all loaded to an ordinary DataTable, so int is converted to
System.Int32, char, varchar and text are converted to string, bit to bool
and so on.

Regards,

Lukas Holota

"Nathan Sokalski" <njsokalski (AT) hotmail (DOT) com> wrote

Quote:
When a DataTable is filled using something such as a DataAdapter, what
values are assigned to each of the DataColumns' DataType property for the
different SQL types? Thanks.
--
Nathan Sokalski
njsokalski (AT) hotmail (DOT) com
http://www.nathansokalski.com/


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.