I\'ve got a problem, and all articles or examples I found seem to not care about it.
I want to do some database actions in a transaction. What I want to do is very s
Microsoft samples, place the begin trans outside of the try/catch see this msdn link. I assume that the BeginTransaction method should either throw an exception OR begin a transaction but never both (although the documentation does not say this is impossible).
However, you may be better of using TransactionScope which manages a lot of the (not so) heavy lifting for you: this link