SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

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.




How could I get the field names and types in Sybase

        

Reply
 
LinkBack Thread Tools Display Modes
Old 16-11-06, 12:44 AM   #1 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 4 foxno1 is on a distinguished road
How could I get the field names and types in Sybase

I have this project to use a protocol (developed by some other teams in the company) to run sql and get data published as PivotTables in front-end EXCEL sheets.
The protocol works only to get data, which means, you can pass in any sql from Excel, it calls the database to run and returns you the results and results only.
Now, pivottable does not make sense if the field names are not there. So I want the field names of the results.
This is to be a general tool, so any stored proc or sql may be expected.

Getting the field names can be a separate process, it doesn't have to come back with the data. But is there a backend sql statement to do something like
return fieldnames (stored proc, select ... from....), it's Sybase. I will need the field datatypes too (although can compromise on this by using strings for all data).

foxno1 is offline Offline   Reply With Quote
Old 27-11-06, 09:10 AM   #2 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 4 foxno1 is on a distinguished road
Re: How could I get the field names and types in Sybase

Anybody? Please help! Is there a way to insert the result sets of the stored proc into a table where I can then use sp_help or sp_columns? I know it's possible in mysql to do: select * into TMPTABLE exec sp_... but not in Sybase. Any suggestions?
foxno1 is offline Offline   Reply With Quote
Reply

Tags
field , names , sybase , types


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +6.5. The time now is 12:15 PM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.2