Skip to content

Instantly share code, notes, and snippets.

@johnathan-sewell
Created March 28, 2011 11:22
Show Gist options
  • Save johnathan-sewell/890310 to your computer and use it in GitHub Desktop.
Save johnathan-sewell/890310 to your computer and use it in GitHub Desktop.
Find out how much space each table in a SQL Server database is using
EXEC sp_MSforeachtable @command1="EXEC sp_spaceused '?'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment