SQLServer查数据库大小的几种方式

https://jingyan.baidu.com/article/cdddd41c60fd3f12ca00e12a.html

一、鼠标点击

1、首先进入sql server,找到要查看的数据库

2、然后右键单击数据库,选择属性

3、接下来在弹出界面中切换到常规选项

4、最后在右侧找到大小,后面的数字就是要查看的值了

https://www.csdn.net/tags/MtzaAg4sMDMwOTctYmxvZwO0O0OO0O0O.html

二、Sql语句

--查询数据库大小

exec sp_spaceused;

unallocated space:未分配空间

--查询数据库中指定表大小

exec sp_spaceused '表名';

 

posted @ 2022-08-11 10:25  yinghualeihenmei  阅读(7981)  评论(0)    收藏  举报