Share via

Managing a sql transaction with handling errors

pmscorca 1,052 Reputation points
2024-01-29T11:54:17.54+00:00

Hi, I need to design a T-SQL stored procedure to manage at better a transaction (begin tran ... commit ... rollback) with handling possible errors (try ... catch). Any suggests to me in order to nest rightly the T-SQL code? Thanks

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.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Olaf Helper 47,621 Reputation points
    2024-01-29T12:09:35.7266667+00:00

    You post is much to vague to give a specific/meanful answer on.

    Any suggests to me in order to nest rightly the T-SQL code

    What do you want to "nest" here (where)?

    Was this answer helpful?


Your answer

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