Shrink a database log file with T-SQL

So I don't forget:


USE SharePoint2010_Config
GO
ALTER DATABASE SharePoint2010_Config SET RECOVERY SIMPLE
GO
DBCC SHRINKFILE ('SharePoint2010_Config_log')
GO
ALTER DATABASE SharePoint2010_Config SET RECOVERY FULL

Comments

Popular posts from this blog

Corporate Intranet Information Architecture – a Publishing Site

No Search Results in SharePoint Contextual Search OSSSearchResults.aspx

The long sad road to getting Metastorm, SharePoint, and Kerberos to work together in a multiple server farm.