What could be the reason for the logfile ( .LDF ) size is greater than datafile ( .MDF ) size in DATA folder of database server and How to solve the problem ?
1.issue Checkpoint
2.Backup log with trncate_only --(if full recovery model)
step 2 can be skipped if with simple recovery model
3.DBCC srinkfile (logfile name)
I issueed Checkpoint in QA and then shrinkfile in EM. The log file became to normal size then. This had done with the user sa. But In begining I tried to do the same with another user which has got dbo role was not possible. what could be the wrong.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.