Since a couple of days, I receive alerts indicating SQLWATCH
The transaction log for database ‘SQLWATCH’ is full due to ‘ACTIVE_TRANSACTION’.
I do in SQLWATCH
dbcc opentran
I get
Transaction information for database ‘SQLWATCH’.
Oldest active transaction:
SPID (server process ID): 53
UID (user ID) : -1
Name : DELETE
LSN : (65270:115008:1)
Start time : Sep 6 2022 4:45:42:950PM
SID : 0x010500000000000515000000b0ad624cea76d9b0107863e451040000
DBCC execution completed. If DBCC printed error messages, contact your system administrator.Completion time: 2022-09-06T16:58:42.8394491+02:00
I killed the spid and ran manually
exec dbo.usp_sqlwatch_internal_retention
it never finishes, dbcc opentrans gives the same thing with another spid
Oldest active transaction:
SPID (server process ID): 58
UID (user ID) : -1
Name : DELETE
LSN : (65270:115008:1)
Start time : Sep 6 2022 4:45:42:950PM
SID : 0x010500000000000515000000b0ad624cea76d9b0107863e451040000
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
after 20 minutes I broke the job again. Can you please help on how to finish with this ‘ACTIVE_TRANSACTION’ sitting there whatever I do, I did a backup(DB is in simple mode), shrink…but nothing helped