How to Handle Errors and Row Counts in Synapse Stored Procedures

vikranth-0706 285 Reputation points
2024-07-02T13:05:32.38+00:00

I'm migrating a stored procedure from a Data Warehouse to Azure Synapse Dedicated SQL pool. The procedure uses @@error and @@rowcount variables, which are not supported in Synapse. Are there alternative ways to achieve the same functionality without these variables?

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.
4,912 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Nandan Hegde 32,256 Reputation points MVP
    2024-07-02T13:57:37.4833333+00:00

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.