确定 SQL Server 数据库大小 [英] Determine SQL Server Database Size

查看:34
本文介绍了确定 SQL Server 数据库大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SQL Server 2005/2008 Express 版有每个数据库 4 GB 的限制.据我所知,数据库引擎只考虑数据,因此排除了日志文件、未使用空间和索引大小.

SQL Server 2005/2008 Express edition has the limitation of 4 GB per database. As far as I known the database engine considers data only, thus excluding log files, unused space, and index size.

根据 SQL Server 限制,获取 MDF 文件的长度不应提供正确的数据库大小.我的问题是如何获取数据库大小?

Getting the length of the MDF file should not give the correct database size in terms of SQL Server limitation. My question is how to get the database size?

推荐答案

sp_spaceused

sp_spaceused

这篇关于确定 SQL Server 数据库大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆