How do I know a SqlTransaction status?

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

In my C# Windows form project, how do I know a specific SqlTransaction's
status? e.g., the transaction is rollbacked or commited.
Thanks for help.


Jason
 
Jason said:
Hi,

In my C# Windows form project, how do I know a specific
SqlTransaction's status? e.g., the transaction is rollbacked or
commited. Thanks for help.

That's not retrievable. However, as your code performs the
rollback/commit, you do know when these changes happen and thus what
the state of the transaction is.

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 
Back
Top