Hello @N2120 ,
Thanks for the ask and using the Microsoft Q&A platform .
I wanted to repro the issue , but then thinks just worked fine for me , I am sharing what I did , may be you tell me how your scenario is different .
My proc looks like this .
CREATE proc testproc @id int
as
IF OBJECT_ID('tempdb..#Results') IS NOT NULL DROP TABLE #Results
BEGIN
CREATE TABLE #Results ( id int , name varchar(100) )
END
INSERT INTO #Results select PersonID,Name from [dbo].[customer_table]
Where PersonID = @id
SELECT * from #Results
drop table #Results
exec testproc 3
I did pointed the ADF with source as the Proc as shown below and it worked just fine .
Hope this helps .
Thanks
Himanshu
Please do consider to click on "Accept Answer" and "Up-vote" on the post that helps you, as it can be beneficial to other community members