This is very easy in the 2.0 Framework. The Connection class now supports
the GetSchema method that returns (very) detailed metadata about any
selected database object. I understand it works with SQL Server and Oracle.
I don't know about VFP.

Signature
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
> Using OLEDB to access visual foxpro DBF files in VB.NET (ultimately will
> also access SQL server and Oracle tables, too).
[quoted text clipped - 15 lines]
> Thanks for any help... \
> John
JohnR - 30 Aug 2005 21:43 GMT
Thanks, Bill... I'll try it again in 2.0... Right now the judgement was that
you can't retrieve that info from a standalone DBF-CDX combination.
Regards, John
> This is very easy in the 2.0 Framework. The Connection class now supports
> the GetSchema method that returns (very) detailed metadata about any
[quoted text clipped - 21 lines]
>> Thanks for any help... \
>> John
JohnR - 30 Aug 2005 21:59 GMT
Oops! Sorry Bill, I replied to the wrong posting. I had another posting
where I wanted to know if I could retrieve the index columns from the table
(ie from the associated CDX file). The answer to that question was no.
Pertaining to this question, yes, I discovered the .GETSCHEMA method, and it
did, indeed, provide me with the column size info.
Sorry for the confusion... it's what happens when your fingers type faster
than your brain thinks!
> Thanks, Bill... I'll try it again in 2.0... Right now the judgement was
> that you can't retrieve that info from a standalone DBF-CDX combination.
[quoted text clipped - 26 lines]
>>> Thanks for any help... \
>>> John