Am working on sybase ASE 15. Looking for something like this
Select * into #tmp exec my_stp;
my_stp returns 10 data rows with two columns i
If my_stp is populating data by computing values from different tables, you can create an equivalent view which does exactly the same as my_stp.
CREATE VIEW My_view AS /* My_stp body */ Then select data from view SELECT * INTO #x FROM my_view