Avatar of hidrau
hidrau
Flag for Brazil asked on

begin trans and roll back - doubts

Hello

I have a doubt about begin and commit and rollback.

I have a proc x and in this proc I started a begin trans, inside of my proc x, it calls a proc xy.

In the proc x I have two deletes for two tables (product, sallers) and inside of my proc xy I have one delete for my clie table.


if I call the rollback, the rollback will affect all the tables from proc x and proc xy?

thanks
Alex
Microsoft SQL Server

Avatar of undefined
Last Comment
hidrau

8/22/2022 - Mon
ste5an

Sure, but do what all good developers do: implement it on a test system and test it. Gather knowledge.. get your own findings.
ASKER CERTIFIED SOLUTION
Vitor Montalvão

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
DBAduck - Ben Miller

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
hidrau

ASKER
Thanks
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck