How to get field size from DataSet

  • Thread starter Thread starter douglas
  • Start date Start date
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.
 
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.
 
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.
 
Back
Top