Hello
I have insert data into temperary table throw execute another stored procedure,
--exec SP_Test_Table 1
ALTER procedure SP_Test_Table
@ID bigint
as
create table #Temp(id int,name varchar(10),contactNo varchar(100),pincode varchar(100), city varchar(100))
select * into #temp from exec SP_Test_Table2 @ID
select * from #Temp
Insert Data in temparary Table Throw execute Sp inside sp
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Felipe RamosRank #1,409 · 1.2K reputationPosted May 17, 2011, 6:43 AM EDT
DECLARE @VTable TABLE
(
id int,
name varchar(10),
etc.
)
Insert Into @VTable
(Exec exec SP_Test_Table2 @ID)