Compattazione dei LOG del database di Sharepoint su Windows Small Business Server 2008
Jump to navigation
Jump to search
Può accadere che il log del DB di Sharepoint su Win2k8 SBS crescano a qualche decina di GB: per ridurli, procedere come segue:
- Installare la Management Console di SQL: Download Microsoft SQL Server Management Studio Express from Official Microsoft Download Center
- Loggarsi all'istanza locale con Autenticazione di Windows
\\.\pipe\mssql$microsoft##ssee\sql\query
- Selezionare il Database con il nome simile a:
SharePoint_Config_0981774d-c345-4712-8b65-fc58c29d0262
- Eseguire le query, adeguando i nomi:
BACKUP LOG [SharePoint_Config_0981774d-c345-4712-8b65-fc58c29d0262] WITH TRUNCATE_ONLY
USE [SharePoint_Config_0981774d-c345-4712-8b65-fc58c29d0262]
GO
DBCC SHRINKFILE ('SharePoint_Config_0981774d-c345-4712-8b65-fc58c29d0262_log' , 50)
GO
- Il file dovrebbe essere troncato a 50Mb