PC Review


Reply
Thread Tools Rate Thread

Determine table names and column names in Access database

 
 
Brian O'Haire
Guest
Posts: n/a
 
      6th Dec 2003
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




 
Reply With Quote
 
 
 
 
Miha Markic
Guest
Posts: n/a
 
      6th Dec 2003
Hi Brian,

Check out OleDbConnection.GetOleDbSchemaTable method.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com

"Brian O'Haire" <(E-Mail Removed)> wrote in message
news:uktwsF$(E-Mail Removed)...
> 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
>
>
>
>



 
Reply With Quote
 
Brian O'Haire
Guest
Posts: n/a
 
      7th Dec 2003
Hi Miha

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

Brian O'Haire

"Miha Markic" <miha at rthand com> wrote in message
news:uhK5m1$(E-Mail Removed)...
> Hi Brian,
>
> Check out OleDbConnection.GetOleDbSchemaTable method.
>
> --
> Miha Markic - RightHand .NET consulting & development
> miha at rthand com
>
> "Brian O'Haire" <(E-Mail Removed)> wrote in message
> news:uktwsF$(E-Mail Removed)...
> > 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
> >
> >
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Database Names, table names & related fields from table in combo box Snowy Microsoft Excel Programming 4 29th Apr 2006 01:08 PM
How to get a list of table column names using a single query in Access? Raymond Microsoft Access Queries 1 17th Dec 2005 05:48 AM
Re: How to determine Column-Names of a System.Data.DataTable at runtim Marina Microsoft ADO .NET 1 30th Jun 2004 07:29 AM
Is it possible to get all the column names in a database table? Showjumper Microsoft ASP .NET 1 21st Feb 2004 05:29 PM
Column Names from a Table in MS Access Matthias Kwiedor Microsoft Access 1 1st Dec 2003 09:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:47 AM.