Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mikeburek
Advocate II
Advocate II

INSERT is not a supported statement type

Post for documentation purposes.


This is when you try to save the table output from a stored procedure to a table in the calling code.

 

If it was supposed to work in Fabric, on this documentation page: 

https://learn.microsoft.com/en-us/sql/t-sql/statements/insert-transact-sql?view=fabric

the 3rd syntax box "-- Syntax for Azure Synapse Analytics and Parallel Data Warehouse and Microsoft Fabric"

would have the line "| execute_statement".

The first syntax box for normal SQL Server does have this line.

 

I haven't found anything saying if this will be implemented in the future, or if it is decided to never be implemented.

 

Example code:

 

CREATE PROCEDURE dbo.testRows
AS
BEGIN
SELECT 1 AS Val;
END;
GO

CREATE TABLE dbo.testRowsTbl (a INT);

-- This INSERT INTO EXEC statement is not valid Fabric Warehouse syntax
INSERT INTO dbo.testRowsTbl (a)
EXEC dbo.testRows;

SELECT * FROM dbo.testRowsTbl;

 

1 ACCEPTED SOLUTION
mikeburek
Advocate II
Advocate II

This post is for documentation purposes for people who search for the error message.

Any extra comments are welcome, and especially a workaround.

But there isn't a question that needs to be answered.

View solution in original post

1 REPLY 1
mikeburek
Advocate II
Advocate II

This post is for documentation purposes for people who search for the error message.

Any extra comments are welcome, and especially a workaround.

But there isn't a question that needs to be answered.

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.