This article is half-done without your Comment! *** Please share your thoughts via Comment ***
I am sharing this post as SQL Server interview because If you are looking for SQL DBA job, there are 80% chance of this question like How you are monitoring the size of Transaction Log Files?
I already shared hundreds of questions of backup/restore/transaction log, but somehow I missed this question.
You can find N number of various ways and T-SQL scripts to monitor the transaction log size, but here I shared a very handy DBCC command to monitor the transaction log size of all Databases.
Use DBCC SQLPERF with the LOGSPACE option, and you can get the transaction log size and usage for all Databases of SQL Server. You can also use DBCC SQLPERF to reset wait and latch statistics.
Don’t you think, this is a small and handy command which you can quickly memorize while giving a SQL DBA Interview.
Command:
1 |
DBCC SQLPERF(LOGSPACE) |
Leave a Reply