查询数据库状态

eikomh 22 0 TXT 2020-07-19 16:07:05

查询数据库的状态信息: ------------------------------Data file size---------------------------- if exists (select * from tempdb.sys.all_objects where name like '%#dbsize%') drop table #dbsize create table #dbsize (Dbname varchar(30),dbstatus varchar(20),Recovery_Model varchar(10) default ('NA'), file_Size_MB

查询数据库状态

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2020-07-19 16:07:05

语句很实用,正是我需要的内容。能够实现需要的功能。