Question : DBCC OPENTRAN

The result is
No active open transactions.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.

Is it referring to only BEGIN TRAN transactions?

thanks

Answer : DBCC OPENTRAN

DBCC OPENTRAN returns the following result set when there are no open transactions:

"No active open transactions.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
"

see below sample from SQL Server BooksOnline
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
CREATE TABLE T1(Col1 int, Col2 char(3));
GO
BEGIN TRAN
INSERT INTO T1 VALUES (101, 'abc');
GO
DBCC OPENTRAN;
ROLLBACK TRAN;
GO
DROP TABLE T1;
GO
Random Solutions  
 
programming4us programming4us