PC Review


Reply
Thread Tools Rate Thread

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

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      24th Dec 2007
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
(E-Mail Removed)
http://www.nathansokalski.com/


 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      24th Dec 2007
"Nathan Sokalski" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

[cross-posting removed]

> 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
 
Guest
Posts: n/a
 
      26th Dec 2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
> (E-Mail Removed)
> http://www.nathansokalski.com/
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataColumn DataType Conversion Matthew Wieder Microsoft ADO .NET 0 26th Mar 2008 08:25 PM
What DataColumn.DataType do each of the SQL types map to? Nathan Sokalski Microsoft ASP .NET 1 26th Dec 2007 09:45 AM
2.0 : DataColumn.DataType John A Grandy Microsoft ADO .NET 1 18th Feb 2006 08:05 AM
Is it possible to set a datacolumn's datatype by using a string value? Benton Microsoft ADO .NET 3 20th Dec 2005 12:34 PM
Re: DataColumn DataType property Prasad Microsoft ADO .NET 0 29th Jul 2003 05:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 PM.