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

Metastorm - Open form in an action from a list or link

Corporate Intranet Information Architecture – a Publishing Site

No Search Results in SharePoint Contextual Search OSSSearchResults.aspx