How to Compress .ldf File ?
I have writen a program that are take database name and reduce the size of .ldf file
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ali tuncerPosted Nov 11, 2016, 5:26 AM
if you want to shrink a log file, I don' think you need to alter database, get your fileId from this query :
FROM sys.database_files;
krishna kanhaiyaPosted Nov 10, 2016, 11:40 PM
ali tuncerPosted Nov 10, 2016, 9:20 AM
krishna kanhaiyaPosted Nov 10, 2016, 6:15 AM
krishna kanhaiyaPosted Nov 10, 2016, 5:23 AM
ali tuncerPosted Nov 10, 2016, 5:05 AM
I think you can use DBCC SHRINKFILE to compress log files..
https://msdn.microsoft.com/en-us/library/ms189493.aspx
Tejas TrivediPosted Nov 10, 2016, 12:53 AM
DBCC SHRINKDATABASE {DATABASENAME}Don't forget to mark as answer if this helps.