Puiu Posted April 2, 2007 Posted April 2, 2007 Let's say I have a stored procedure SP_Master with a code similar to this: create proc sp_master as begin begin tran exec sp1 exec sp2 update table1 set... rollback end My question: the rollback statement will also rollback the changes made by sp1 and sp2? Thanks Quote
Administrators PlausiblyDamp Posted April 2, 2007 Administrators Posted April 2, 2007 Under SQL a ROLLBACK statement rolls back all active transactions. In your example this would include updates performed by both sp1 and sp2. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.