Home All Groups Group Topic Archive Search About
Author
10 Nov 2005 5:11 PM
JFB
Hi All,
I have an store procedure with a 100 and some lines, and I want to analize
the result from another sp.
How can I get the values to do a select statement?
create procedure myPro
As
    select * from orders bla...
go

create procedure analizemyPro
As
    declare @temp varchar(100)
    select @temp = ordername from (here the result of myPro)
Go

Tks in advance
JFB

Author
10 Nov 2005 5:27 PM
SQL
Output parameters,look up (stored procedures, output parameters) in BOL
or create a table and do an insert with exec

insert into table
exec myPro

http://sqlservercode.blogspot.com/
Author
10 Nov 2005 6:14 PM
JFB
Tks for you reply and help... We got it :)

Show quote
"SQL" <denis.g***@gmail.com> wrote in message
news:1131643669.810105.317790@g47g2000cwa.googlegroups.com...
> Output parameters,look up (stored procedures, output parameters) in BOL
> or create a table and do an insert with exec
>
> insert into table
> exec myPro
>
> http://sqlservercode.blogspot.com/
>

AddThis Social Bookmark Button