leku_cc

查询所有数据库文件大小

create table #tempTabelInfo

(

name nvarchar(100) not null,        fileid int,        filename nvarchar(300),        filegroup  nvarchar(300),        size nvarchar(300),

maxsize        nvarchar(300),growth nvarchar(300),        usage nvarchar(300)

)

go

sp_msforeachdb \'

use [?];

if db_id()>4

begin

insert into #tempTabelInfo

EXEC sp_helpfile;

end\'

select * from #tempTabelInfo

drop table #tempTabelInfo

go

发表于 2013-05-17 16:37  只羡鸳鸯  阅读(275)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2021-12-23
  • 2021-07-20
猜你喜欢
  • 2021-07-31
  • 2021-09-27
  • 2021-11-17
  • 2022-01-30
  • 2021-11-03
  • 2021-04-15
  • 2022-02-23
相关资源
相似解决方案