The following SQL query returns the size of each table in the specified database.
USE
sp_MSforeachtable @command1=’EXEC sp_spaceused ”?”’,@whereand=’or OBJECTPROPERTY(o.id, N”IsSystemTable”) = 1′
The following SQL query returns the size of each table in the specified database.
USE
sp_MSforeachtable @command1=’EXEC sp_spaceused ”?”’,@whereand=’or OBJECTPROPERTY(o.id, N”IsSystemTable”) = 1′
Tags: SQL server
This entry was posted on May 7, 2010, 11:57 am and is filed under SQL server. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Arclite theme by digitalnature | powered by WordPress
follow: