Skip to content

Instantly share code, notes, and snippets.

@eriksk
Created March 20, 2013 11:38
Show Gist options
  • Save eriksk/5204017 to your computer and use it in GitHub Desktop.
Save eriksk/5204017 to your computer and use it in GitHub Desktop.
Drop all tables in MS SQL database
EXEC sp_MSforeachtable @command1 = "DROP TABLE ?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment