is it possible to get the size of the datatype of a datacolumn in a datatable?
i want to show the datatype with the size of a table.
first i got the table in a dataset. then i try to catch the datatype.
all are working fine? but my question is "is it possible to get the datasize
ie.
like varchar(20)?" if possible which method i hav to use?
pls help me out.
--
sharing doubles brain power

Re: datacolumn by RobinS

RobinS
Fri Mar 14 02:02:47 CDT 2008

If you are talking about getting the size of a column in a database, you can
use the GetSchemaTable method of the DataReader to pull all kinds of
information. If that's what you're looking for, post back and I'll provide
the code.

RobinS.
GoldMail.com

"thams" <thams@discussions.microsoft.com> wrote in message
news:29158FAE-F4D0-4565-B5A1-11A06FD449AA@microsoft.com...
> is it possible to get the size of the datatype of a datacolumn in a
> datatable?
> i want to show the datatype with the size of a table.
> first i got the table in a dataset. then i try to catch the datatype.
> all are working fine? but my question is "is it possible to get the
> datasize
> ie.
> like varchar(20)?" if possible which method i hav to use?
> pls help me out.
> --
> sharing doubles brain power