SharePoint config Database Log File too big

Source: Internet
Author: User

SharePoint config database logs are one thing to keep an eye on since
They do have a tendency to grow. If you don't perform a full farm
Backup usually the log doesn' t get emptied and it just keeps bloating.

If you're running Ning SQL Server express with default installation, you can find the files inC: \ Program Files \ Microsoft SQL Server \ mssql.1 \ MSSQL \ data

As we see in the example above, even though the database is only 6 Megs, the log file grew to 11 gigs. Let's reduce that:

1. If you don't have it yet, download and install SQL Server Management studio express from here.

2. Run the management studio and connect to your SQL Server.

3. Expand "databases" and select your Config database "Using point_config ".

4. Right click it, selectTasks-> shrink-> files

5. In the new window selectRelease unused spaceAnd clickOK.

If that doesn't decrease the database size much, do the following:

1. First to be on the safe side, let's back it up (this step is optional)

SelectNew Query

Type the following:

Backup log [Export point_config] to disk = 'd: \ configlogbackup. Bak'
Go

Where your point_config is
Name of your Config database file and D: \ configlogbackup. Bak is
Location and file name of where you'll make the backup.

And clickExecute

This may take a while if your log file is big.

2. Next clear the query (or click New query again) and enter the following commands

Backup log [cmdpoint_config] With truncate_only
Use [Export point_config]
Go

ANC clickExecuteAgain

3. Clear the query or open another query tab and enter the next command:

DBCC shrinkfile (n'sharepoint _ config_log ', 50)
Go

The 50 in the command above sets the size in MB to truncate the log
To. If your Config dB is of different name, replace
Sharepoint_config part above with your Config dB name.

And clickExecuteYet again.

The result you get shoshould be something like below:

And ofcourse the file size:

Ahhh. Finally some space.

Http://www.sharepointboris.net/2008/10/sharepoint-config-database-log-file-too-big-reduce-it/

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.