Get a Database Table properties programmatically
This program displays you a table properties such as its column names, types, and column properties. I have used a database mcTest.mdb which has a table called 'Developer'. You can download this attached database and change the path of the database according to your location.
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Get a Database Table properties programmatically

sri kPosted Feb 26, 2008, 5:56 PM EST
Hi Mahesh Can you please advise how to get a column's max defined size i tried to use listBox1.Items.Add(dc.MaxLength) but it returns -1 Thanks Sri
PetePosted Aug 22, 2006, 7:52 AM EDT
Hi Mahesh, When I run your code, for each column: the IsUnique values are always = False the auto-increment values are always = False and the allow-null values are always = True These are not accurate. What could wrong ? Thanks in Advance Pete