Truncate SQL Logs directly

EXEC(‘USE [MSDB]; DBCC SHRINKFILE([MSDBLog], 1)’)
EXEC(‘USE [SharePoint_Config]; DBCC SHRINKFILE([SharePoint_Config_Log], 1)’)

Advertisements