Skip to content

Instantly share code, notes, and snippets.

@jbubriski
Created August 29, 2013 14:22
Show Gist options
  • Save jbubriski/6378747 to your computer and use it in GitHub Desktop.
Save jbubriski/6378747 to your computer and use it in GitHub Desktop.
SQL Server command to shrink the logs of a database.
ALTER DATABASE mydatabase SET RECOVERY SIMPLE
DBCC SHRINKFILE (mydatabase_Log, 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment