How do I select from a stored procedure in Sybase?

Posted by Nick Fortescue on Stack Overflow See other posts from Stack Overflow or by Nick Fortescue
Published on 2009-09-18T08:24:43Z Indexed on 2012/10/19 11:03 UTC
Read the original article Hit count: 167

Filed under:
|
|
|

My DBA has constructed me a stored procedure in a Sybase database, for which I don't have the definition. If I run it, it returns a resultset with a set of columns and values. I would like to SELECT further to reduce the rows in the result set. Is this possible?

From this question it seems like I could insert the results into a temporary table, but I'm not sure I've got permissions to do this.

Is there any way I can SELECT certain rows, or if not, can someone give me example code for simulating with a temporary table?

© Stack Overflow or respective owner

Related posts about tsql

Related posts about stored-procedures