Yes, that was a slip on my part. I meant trancount...
>>Well, the help states that @@ROWCOUNT should work, however, it returned 1 in a field (similar to how COUNT works) and when I tried to use rollback (because @@ROWCOUNT was > 0) it returned the ODBC Err# 3903, (1526) The Rollback transaction request has no corresponding BEGIN TRANSACTION. So why did it return 1 then?
>
>because @@ROWCOUNT was > 0 (You meant TRANCOUNT, right)?
>
>I'm not sure how ROWCOUNT corresponds to TRANCOUNT. As I said, trancount > 0 doesn't mean that it's your transaction opened, it just means you have opened transactions.
>
>Check also
DBCC OPENTRAN
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"