Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
shzkhan28
Starting Member
15 Posts |
Posted - 2009-08-31 : 00:53:57
|
Hi All,In Child Procs i am also mentioning Begin transaction/CommitIf Child Proc executes successfully and Commits and after that there is problem and Rollback in Parent Proc Will Child Proc updation be Commited or Rollback?Proc ParentBegin Begin Try Begin Transaction insert xyz tables update xyz2 tables Exec Child update xyz3 tables ...Error... Commit End Try Begin Catch Rollback End Catch EndProc ChildBegin Try Begin Transaction insert tbl1 ... update tbl2 ... Commit TransactionEnd TryBegin Catch RollbackEnd Catch |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
shzkhan28
Starting Member
15 Posts |
Posted - 2009-09-01 : 22:45:39
|
Thanks... |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|