Skip to content

Instantly share code, notes, and snippets.

@ehlertij
Created September 26, 2012 16:29
Show Gist options
  • Save ehlertij/3789021 to your computer and use it in GitHub Desktop.
Save ehlertij/3789021 to your computer and use it in GitHub Desktop.
Shrink Transaction Log
USE WSN_Forums
GO
ALTER DATABASE WSN_Forums SET RECOVERY SIMPLE
GO
DBCC SHRINKFILE('WSN_Forums_log',1)
GO
ALTER DATABASE WSN_Forums SET RECOVERY FULL
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment