October 29, 2006 at 11:39 pm
hi
how do i find the databse size from tsql
thanxs
October 30, 2006 at 2:15 am
use yourdb
exec sp_helpfile
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
October 30, 2006 at 5:28 am
Depends on exactly what size information you want ...
sp_helpfile will give you the individual sizes of each file that makes up the database.
sp_helpdb will display the TOTAL size of all files for each database
sp_helpdb databasename - gives you the same information as BOTH the commands above
use database ; sp_spaceused - shows you the total allocated space, total used space, remaining unused space, for both data and logfiles.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply