In Azure Data Warehouse
, i have a Stored Procedure
which will return the result of SELECT
command.
How to push the Stored Procedure
result into temp table?
I tried the below query and it is returning an error message.
CREATE TABLE #temp
(name varchar(255), created_date datetime)
GO
INSERT INTO #temp
EXEC sp_testproc
Output message:
Msg 103010, Level 16, State 1, Line 3
Parse error at line: 2, column: 1: Incorrect syntax near 'EXEC'.