Recently the company's database as the volume of business increased, the log file is huge (more than 300G), resulting in insufficient disk space, and subsequent access to the database request can not be accessed.
There are a lot of similar methods on the Internet, but they are not feasible, as I have done, and it works, to shrink the log file to any specified size:
First step: In SQL SERVER Management Studio, right-click the database Select Properties---Options to change the recovery mode from default "full" to "simple".
Second step: Right-click again to select the database "task"-"Shrink"---"File" menu, go to shrink file page,
Select the file type (to shrink) as "log", and in the "Shrink action" radio box below the page, choose the "reorganize page before releasing unused space, shrink the file to:" and fill in the appropriate shrink log file size.
Finally click on the "OK" button below this page to perform the Shrink file (log) operation.
After execution, the user can find out that the log file has shrunk to the specified size.
How to shrink SQL SERVER2008 database log files