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 2000 Forums
 SQL Server Development (2000)
 @@trancount

Author  Topic 

noamg
Posting Yak Master

215 Posts

Posted - 2001-01-15 : 10:07:38
I write this:

set implicit_transactions on
select @@trancount

begin tran
select @@trancount
...


I got results:
0
2

why 2 and not 1 ?


Noam Graizer
   

- Advertisement -