获得库每个表的记录数和容量,sp_msforeachtable是MS未公开的存储过程

MSSQL:获得库每个表的记录数和容量

sp_msforeachtable是MS未公开的存储过程:

exec sp_msforeachtable @command1="print '?'",@command2="sp_spaceused '?'",@command3= "select count(*) from ? "

posted @ 2008-04-08 09:22  大力  阅读(307)  评论(0编辑  收藏  举报