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.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Calling child SP's from within a TRANSACTION.

Author  Topic 

XPXJ
Starting Member

4 Posts

Posted - 2009-05-28 : 19:44:04
To increase reliability and reduce maintenance load . . .
I'd like to break out duplicated SQL in several SP's
into sub-SP's.

But I want to confirm that the calling of sub-SP's from
within the scope of an outer SP with BEGIN TRANSACTION,
COMMIT TRANSACTION will still function as a single
TRANSACTION.

Thank you,
XPXJ

Vinnie881
Master Smack Fu Yak Hacker

1231 Posts

Posted - 2009-05-28 : 21:29:40
yes, as long as you use the begin trans and commits properly.


http://sql-server-performance.com/Community/forums/p/16360/91292.aspx
http://forums.devx.com/showthread.php?t=17888


Success is 10% Intelligence, 70% Determination, and 22% Stupidity.
\_/ _/ _/\_/ _/\_/ _/ _/- 881
Go to Top of Page
   

- Advertisement -