1
0
mirror of https://github.com/alex-bochkov/ssms-addin.git synced 2025-11-23 22:04:53 +02:00

Update grow-log-file.sql

This commit is contained in:
Alexey Bochkov
2019-04-18 20:25:59 -07:00
committed by GitHub
parent 025520e811
commit fd2dfe9667

View File

@@ -22,14 +22,7 @@ select
mf.growth,
mf.*
from sys.master_files mf
cross apply (
SELECT
COUNT(*) AS VLF
FROM
sys.dm_db_log_info(mf.database_id) li
) AS li
where
mf.type = 1
and mf.database_id > 4
order by
mf.growth
cross apply (SELECT COUNT(*) AS VLF FROM sys.dm_db_log_info(mf.database_id) li) AS li
where mf.type = 1
and mf.database_id > 4
order by mf.growth