USE [database name] ALTER DATABASE [database name] SET RECOVERY SIMPLE DBCC SHRINKFILE([log file name], <preferred size>) ALTER DATABASE [database name] SET RECOVERY FULL
USE [database name] ALTER DATABASE [database name] SET RECOVERY SIMPLE DBCC SHRINKFILE([log file name], <preferred size>) ALTER DATABASE [database name] SET RECOVERY FULL