SQL Server 2000, ADO 2.8, VB6

How to determine if a transaction is active, that is, before the release of "Transaction Start". I want to make sure the previous transaction is not open. The platform is VB6, MS-SQL Server 2000 and ADO 2.8

+3
source share
1 answer

You can check the @@ TRANCOUNT variable for the current database connection. It increases by 1 each time a transaction is opened.

http://msdn.microsoft.com/en-us/library/aa933178(SQL.80).aspx

+6
source

Source: https://habr.com/ru/post/1721967/


All Articles