How to get field size from DataSet

D

douglas

Hi,

I dont know how to get the orginal DB column size from the dataset.

Can anyone please show me the code for this?

Many thanks

Doug.
 
M

Miha Markic [MVP C#]

I doubt you'll be able to pull that rabit from the hat.
Those values are mapped to .net one's and they are not persisted anywhere.
You might check DbConnection.GetSchema method to find out the database
structure.
 
D

douglas

Thanks a lot

Miha Markic said:
I doubt you'll be able to pull that rabit from the hat.
Those values are mapped to .net one's and they are not persisted anywhere.
You might check DbConnection.GetSchema method to find out the database
structure.

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

douglas said:
Hi,

I dont know how to get the orginal DB column size from the dataset.

Can anyone please show me the code for this?

Many thanks

Doug.
 

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