datacolumn

T

thams

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.
 
R

RobinS

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
 

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

Top