Last active
May 14, 2020 10:13
-
-
Save matejskubic/a49d35b2cd69c61417c29b63a9b8ab8d to your computer and use it in GitHub Desktop.
inspect / analyse sql transaction log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
--TOP 100 | |
AllocUnitName, | |
Operation, | |
COUNT(*) c, | |
SUM([Log Record Length]) l | |
FROM sys.fn_dblog(NULL,NULL) | |
GROUP BY | |
AllocUnitName, | |
Operation | |
ORDER BY COUNT(*) DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment