How do i find out the number, names and datatype of fields in an Access table.....using code.....
Arunabh Nag 0 Light Poster
Recommended Answers
Jump to PostDataTable class members is the answer.
Jump to Postwhy not just google for what he told you?
i straight came to http://msdn.microsoft.com/en-us/library/system.data.datatable_members.aspx
Jump to PostArunabh Nag: Here is the C# code I use to enumerate tables and columns. Let me know if you have trouble translating it and I will get back with you tomorrow. I figure a C# answer today is better than a VB.NET answer tomorrow :)
using System; …
Jump to PostAlso note -- you can just call
connection.GetSchema()
off of an existing OleDb or ODBC connection to access... its a lot less work.
All 16 Replies
kvprajapati 1,826 Posting Genius Team Colleague
Arunabh Nag 0 Light Poster
GeekByChoiCe 152 Practically a Master Poster Featured Poster
kvprajapati commented: Well said. +11
HuubVanOers 0 Newbie Poster
sknake 1,622 Senior Poster Featured Poster
sknake 1,622 Senior Poster Featured Poster
Arunabh Nag 0 Light Poster
Arunabh Nag 0 Light Poster
Arunabh Nag 0 Light Poster
sknake 1,622 Senior Poster Featured Poster
Arunabh Nag 0 Light Poster
sknake 1,622 Senior Poster Featured Poster
Arunabh Nag 0 Light Poster
Arunabh Nag 0 Light Poster
Arunabh Nag 0 Light Poster
SadiSerdari 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.