|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Wednesday, November 05, 2008 2:49 PM
Points: 57,
Visits: 14
|
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Saturday, March 30, 2013 2:45 PM
Points: 108,
Visits: 273
|
|
You could also use the system stored procedure sp_spaceused 'YourTableName' . I actually saved this and other system stored procedures on my "Keyboard Shortcuts" for easy access.
Sal Young MCITP Database Administrator
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Wednesday, April 09, 2008 4:58 AM
Points: 239,
Visits: 38
|
|
This is not an efficient script, it doesn't include tables without clustered indexes(primary key).
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, June 03, 2008 8:47 PM
Points: 8,
Visits: 18
|
|
| This script has a fault,that is,the results don't contain those tables which not exists any indexes.
|
|
|
|