Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

how to block the sp result from being displayed, when called from an other sp.

$
0
0

hi,

i have a situation,

    i want to call a stored proc "sp2" in "sp1"

sp1 start

Declare @stroutput varchar(max)

exec sp2 p1,@stroutput

select @stroutput

sp2 end

i want @stroutput output form sp2 which i am getting , but i am also getting the result returened by sp2

which i want to block "with out changing the sp2".

one solution is, i tried to put the result of sp2 in temporary table which gets dealocated after sp1 is finished.

but i have to create an extra temp table which i do not want to do.

so apart from solution if  any other solution  exist then please tel me.

yours sincerley



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>