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 > SQLCLI metadata

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-08-09, 14:00
kovariadam kovariadam is offline
Registered User
 
Join Date: Jul 2008
Posts: 5
SQLCLI metadata

Hello,
i'm writing program in c++ using sqlcli for connecting to DB2 database. I want to execute queries from user input but i don't know how to get metadata for given query.

I input some select and execute it using SQLExecDirect and i need to find out names of columns to bind then. If select contains explicitely named columns i could maybe parse select but what if it's some query in form select * from aaa. Do I need to first call DESCRIBE TABLE command to obtain that metadata?

Is there some API for doing this?

Thanks
Reply With Quote
Reply

Thread Tools
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