Visual Studio - Build Error - Azure SQL Data Warehouse using 'SET RESULT_SET_CACHING ON/OFF'

Andrew Kay 26 Reputation points
2022-03-29T13:57:18.507+00:00

We are attempting to use 'Build Solution' within a Visual Studio project for Azure SQL Data Warehouse. There are a number of Stored Procedures in the project that use the line 'SET RESULT_SET_CACHING OFF' (or on). This is valid Syntax in Azure SQL Data Warehouse (although not in SQL Server), the Stored Procedures currently exist on the Database and execute just fine.

When we try to build / publish, we get the error: SQL46010: Incorrect syntax near RESULT_SET_CACHING

In the Project Properties, the Target Platform is set as Azure SQL Data Warehouse. We've tried in both VS 2019 and 2022.

Is this just a bug / not implemented yet? and are there any potential workarounds?

Example:

CREATE PROC [dbo].[New_Procedure] AS
BEGIN
SET RESULT_SET_CACHING OFF;
SELECT
GETDATE()
END

The above is perfectly valid in Azure Data Warehouse

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,200 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,447 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Ioannis Kanakis 0 Reputation points
    2025-02-23T06:49:11.0033333+00:00

    Hi any news regarding this issue? Did you manage to solve it? It still persist.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.