I want to Execute one procedure from another procedure and store specific columns from the result of procedure in a temp table without declaring it but Columns are not known and changes depends on the conditions.
I have tried following code but its not working
select * into #Temp1 from Exec(Procedure @parameter)
Is there any way to do this?