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

No Search Results in SharePoint Contextual Search OSSSearchResults.aspx

Corporate Intranet Information Architecture – a Publishing Site

Get Web Part By GUID