其实这个问题你只要写一个脚本就可以了
isql -Usa -Pxxx -ogetspace.sql
use dbname
go
select 'sp_spaceused '+name+char(10)+'go' from sysobjects where type='U' order by name
go
quit
然后编辑该文件,在文件前面加上
use dbname
go
把那些不要的东西去掉.
执行该脚本,将输出到一个文件
然后你查看该文件,你就可以看到哪个表数据用了多少空间,索引用了多少空间