Home > Archive > MS SQL Server > March 2005 > Database Size (Free,Used)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Database Size (Free,Used)
Joe K.

2005-03-30, 7:03 pm


In SQL Server Enterprise Manager taskpad will display database size free and
used space.

What tables within SQL Server is this information stored?

Is there another way to obtain database size free and used space?

Thanks,
Narayana Vyas Kondreddi

2005-03-30, 7:03 pm

See sp_spaceused in SQL Server Books Online. In master databse, you could
run the following to see what tables this procedure accesses:

sp_helptext sp_spaceused
--
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/


"Joe K." <Joe K.@discussions.microsoft.com> wrote in message
news:805D5942-D569-4083-99B4- E537F845D880@microso
ft.com...

In SQL Server Enterprise Manager taskpad will display database size free and
used space.

What tables within SQL Server is this information stored?

Is there another way to obtain database size free and used space?

Thanks,


Hari Prasad

2005-03-30, 7:03 pm

Hi Joe,

Sysindexes system table in each database stores all the space information. You could also use the system stored procedure
"sp_spaceused " to get the space usage. For transaction log usage use DBCC SQLPERF(LOGSPACE)

Thanks
Hari
SQL Server MVP


____________________
________________
Joe K. Wrote:


In SQL Server Enterprise Manager taskpad will display database size free and
used space.

What tables within SQL Server is this information stored?

Is there another way to obtain database size free and used space?

Thanks,







Sent via SreeSharp NewsReader http://www.SreeSharp.com
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com