![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a way to determine whether a transaction is still "open"; i.e., it hasn't yet been either committed or rolled back? I'm guessing that the transaction's connection object will be null if it is no longer in use, but that's just a (hopefull) guess. I've got a situation where the code needs to determine whether it can use an existing transaction or not, given only the transaction object itself. Thanks in advance, Bill |
#3
| |||
| |||
|
|
Hi Bill, Why would you need it in first place? -- Miha Markic [MVP C#] RightHand .NET consulting & development www.rthand.com Blog: http://cs.rthand.com/blogs/blog_with_righthand/ "Bill Cohagan" <cohagan (AT) nospam (DOT) nospam> wrote in message news:%23gm8eH2AGHA.360 (AT) TK2MSFTNGP09 (DOT) phx.gbl... Is there a way to determine whether a transaction is still "open"; i.e., it hasn't yet been either committed or rolled back? I'm guessing that the transaction's connection object will be null if it is no longer in use, but that's just a (hopefull) guess. I've got a situation where the code needs to determine whether it can use an existing transaction or not, given only the transaction object itself. Thanks in advance, Bill |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |