Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

VLFs

$
0
0

I was doing some research and found the following code that is supposed to bring the VLFs(virtual log file)in the log file down. Was wondering if this is the correct approach? I have read Kimberly's article on VLFs but it doesn't talk about how to reduce the number of VLFs. Can someone please advice?

DBCC SHRINKFILE(database_log,TRUNCATEONLY)
GO
ALTER DATABASE databasename
MODIFY FILE
(NAME = database_log,SIZE = 100 MB)
GO


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>