Regularly scale SQL databases to reduce log storage pressure
Source: Internet
Author: User
In general, the contraction of the SQL database cannot be greatly reduced.
DatabaseThe log size, which is mainly used to shrink the log size. This operation should be performed regularly to avoid excessive database logs.
1. Set Database mode to simple mode: Open the SQL Enterprise Manager, in the root directory of the console, choose Microsoft SQL Server> SQL Server Group> double-click to open your Server> double-click to open the Database Directory> select your database name (for example
ForumDatabase Forum) --> then right-click and choose Properties --> select options --> Select "simple" in the fault recovery mode, and then save it as OK
2. Right-click the current database to view the shrinking database in all tasks. Generally, the default settings in the database do not need to be adjusted. Click OK directly.
3. After the database is shrunk, we recommend that you set your database attributes to the standard mode. The operation is the same as the first one, because logs are often an important basis for database recovery in case of exceptions.
Original address: http://www.111cn.net /? 13542/action_viewspace_itemid_2928.html
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