Check SQL Server Virtual Log Files Using PowerShell
        Posted  
        
        on SQL Server Central
        
        See other posts from SQL Server Central
        
        
        
        Published on Thu, 11 Oct 2012 06:00:00 UT
        Indexed on 
            2012/10/11
            9:47 UTC
        
        
        Read the original article
        Hit count: 231
        
In a previous tip on Monitor Your SQL Server Virtual Log Files with Policy Based Management, we have seen how we can use Policy Based Management to monitor the number of virtual log files (VLFs) in our SQL Server databases. However, even with that most of the solutions I see online involve the creation of temporary tables and/or a combination of using cursors to get the total number of VLFs in a transaction log file. Is there a much easier solution?
© SQL Server Central or respective owner