Shrink MSSQL server log file |
24.6.04 |
My project database log file size is more than 2700MB. |
Comments:
<< Home
Hey Gloria,
Thanks very much for the sql script.
I had exactly the same problem, except the size of the log file... It was 9GB at the moment!
Thanx again!
Paul
Thanks very much for the sql script.
I had exactly the same problem, except the size of the log file... It was 9GB at the moment!
Thanx again!
Paul
Gloria,
Thanks for your post! Yours was ranked #1 on ask.com and you were right. Also, thanks for the reference in your blog to the MS site.
Thanks for your post! Yours was ranked #1 on ask.com and you were right. Also, thanks for the reference in your blog to the MS site.
Great tip!!
It sure did the trick for me, reducing my log from 10GB+ to 2MB.
:D very happy. Thank you very much!
It sure did the trick for me, reducing my log from 10GB+ to 2MB.
:D very happy. Thank you very much!
Hi Gloria,
Good tip, but failed the first time I tried it. The messages indicated that the log was still open somehow. A little more digging turned up the command
dbcc opentran('pubs')
which lists any open transactions.
We found the process that was holding the log open, stopped it (it was quite old) and then the dbcc shrinkfile worked correctly.
Good tip, but failed the first time I tried it. The messages indicated that the log was still open somehow. A little more digging turned up the command
dbcc opentran('pubs')
which lists any open transactions.
We found the process that was holding the log open, stopped it (it was quite old) and then the dbcc shrinkfile worked correctly.
Thank you Thank you Thank you!
This is the only place I found this instruction in lots of web searching, and it got me out of serious trouble. My transaction log was 14 gb with free disk space of 4 gb.
Post a Comment
This is the only place I found this instruction in lots of web searching, and it got me out of serious trouble. My transaction log was 14 gb with free disk space of 4 gb.
<< Home