0

I have a method that has a connection as one of it's parameters:

e.g. public void Foo(SqlConnection pConn) { }

within Foo is it possible to determine if pConn is enlisted in any transactionscope?

4

1 回答 1

0

If its sql server issue a select @@trancount would be one way

于 2009-10-16T18:28:06.950 回答