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 > ASP > AS400 Table Information

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-12-02, 13:39
Tek707 Tek707 is offline
Registered User
 
Join Date: Sep 2002
Location: Los Angeles
Posts: 8
Arrow AS400 Table Information

Is there a way I can get the field names of an AS400 table via ASP coding.
Reply With Quote
  #2 (permalink)  
Old 09-13-02, 04:31
JonathanB JonathanB is offline
Registered User
 
Join Date: Feb 2002
Location: North Wales, UK
Posts: 114
All depends on what database access layer your using...

Once you have the data in a recordset you can retrieve the field names using:
Quote:
for f = 0 to data_rs.fields.count-1
response.write(data_rs.fields(f).name)
next
__________________
J^ - web | email
newsASP Developer
Reply With Quote
  #3 (permalink)  
Old 09-13-02, 12:56
Tek707 Tek707 is offline
Registered User
 
Join Date: Sep 2002
Location: Los Angeles
Posts: 8
Quote:
Originally posted by JonathanB
All depends on what database access layer your using...

Once you have the data in a recordset you can retrieve the field names using:
Thanks...That helped alot.
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On