Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 database space analysis

Author  Topic 

Kimi86
Yak Posting Veteran

79 Posts

Posted - 2013-03-26 : 10:36:13

Select fileid,groupid,size,maxsize,growth,name,filename
from dbo.sysfiles :-
fileid groupid size maxsize growth name filename
1 1 1966080 6236160 64000 DB_VIEWS Data.MDF
2 0 655360 1310720 131072 DB_VIEWS Log.LDF

Sp_Spaceused :-database_name database_size unallocated space
DB_NAME 20480.00 MB 1901.50 MB

reserved data index_size unused
13781504 KB 9183168 KB 4593976 KB 4360 KB

I don’t know how to correlate theses two sources of information
I just need to find out what is my total database size, how much has been occupied and how much is the free space available

robvolk
Most Valuable Yak

15732 Posts

Posted - 2013-03-26 : 10:53:29
Please do not cross post:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=184056
Go to Top of Page
   

- Advertisement -