How to shrink SQL SERVER2008 database log files

Source: Internet
Author: User
Tags management studio sql server management sql server management studio

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.