@@error, @@rowcount, and other similar variables are server-level variables that are not supported in Synapse Dedicated SQL pool. This is because Synapse Dedicated SQL pool is a distributed data warehouse that processes queries across multiple compute nodes, and these variables only apply to individual query batches on a single node. To work with error handling and row counts in Synapse Dedicated SQL pool, you should use other techniques such as TRY...CATCH blocks and COUNT() functions.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-08-31 11:00:00 +0000
Seen: 7 times
Last updated: May 20 '21
What does the error message "Incorrect syntax near ')'" mean in SQL?
How to solve the issue of being unable to establish a connection with libpq on Mac M1?
What is the problem with bindValue in QT SQL?
The content inside my buttons is not visible on the screen.
What causes peep and pop operations to produce invalid outputs?