If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > How to get table attribute names from a MS ACCESS DB using PowerBuilder

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-27-04, 17:03
orejap orejap is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
Question How to get table attribute names from a MS ACCESS DB using PowerBuilder

Does anyone know if there's any way to get a table's attribute names (using an SQL query or something like that)


i found that i can get the tables names using this query:


SELECT Name from MSysObjects where Type = 1


MSysObjects is a system table in MS ACCESS holding information about the DB objects (Tables, relationships, etc.)

Apparently theres no Table specifying the DB table's attributes.

i need to implement a PowerBuilder function that receives a valid table name and returns an array of strings containing the names of each of the table attributes.


Any help?
Reply With Quote
  #2 (permalink)  
Old 03-27-04, 22:14
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,606
There is a ton of information at MSDN about Defining and retrieving a database's schema. I don't think it will be too hard to do using PowerBuilder, but you won't be able to just paint a DataWindow from a SQL SELECT statement.

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On