September 15, 2014 at 6:24 pm
Hi All,
I need to reduce the log file size to be very small . At the moment , the current size is 14 GB .
I hv run : ALTER DATABASE ExampleDB SET RECOVERY SIMPLE
DBCC SHRINKFILE('ExampleDB_log', 0, TRUNCATEONLY)
but it only free up 1 GB
I also run
DBCC SHRINKFILE('ExampleDB_log', 1)
but it doest give me a result as expected.
What should I do ?
Cheers
September 16, 2014 at 12:20 am
This was removed by the editor as SPAM
September 16, 2014 at 1:06 am
WhiteLotus (9/15/2014)
I need to reduce the log file size to be very small . At the moment , the current size is 14 GB .
Why?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 16, 2014 at 6:12 am
Why you want to shrink the log file?
Maybe its only shrinking 1 GB because that's all the free space available.
If you still want to shrink, take log backups and then you should shrink.
However, the log will grow back again when it requires more space.
Regards,
SQLisAwe5oMe.
September 17, 2014 at 1:49 am
SQLisAwE5OmE (9/16/2014)
Why you want to shrink the log file?Maybe its only shrinking 1 GB because that's all the free space available.
If you still want to shrink, take log backups and then you should shrink.
However, the log will grow back again when it requires more space.
Thanks Guys for the response . I really appreciate it
I hv solved the problem. It turns out there is an open transaction that is still there so i need to kill it first
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply