Determine table names and column names in Access database

  • Thread starter Thread starter Brian O'Haire
  • Start date Start date
B

Brian O'Haire

Hi
I am trying to determine the column names in a table in an access xp
database using c# in an asp.net web page.
I can determine the table names by reading the MSysObjects table.
The SQL system function COL_Name does not work with access.

Any suggestions would be appreciated.

Brain O'Haire
 
Hi Brian,

Check out OleDbConnection.GetOleDbSchemaTable method.
 
Hi Miha

That was just what I was looking for, thank you.

Brian O'Haire
 

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

Back
Top