Guest_imported
New member
- Jan 1, 1970
- 0
Can an SP “call” another SP ?
If so, how can it’s result be retrieved ?
eg
create procedure getvar
as
declare @var1 numeric
select @var1 = (convert(numeric(16), select etc etc)
create procedure get-getvar
as
declare @var2 numeric
exec getvar <- This will display @var1, but
How do I get @var1 from getvar into @var2 ?
select @var2
Thanks
If so, how can it’s result be retrieved ?
eg
create procedure getvar
as
declare @var1 numeric
select @var1 = (convert(numeric(16), select etc etc)
create procedure get-getvar
as
declare @var2 numeric
exec getvar <- This will display @var1, but
How do I get @var1 from getvar into @var2 ?
select @var2
Thanks