Chris Hayes posted on March 7, 2009 12:52
Handy script for finding database file usage

Chris Hayes is a software developer and part-time DBA in the Dallas/Ft Worth area, and contributes this blog


Here's a pretty slick script written by a buddy of mine, Chris Hayes, for extracting file statistics, file usage, and file placement for SQL Server data, log, and filestream (SQL Server 2008). Chris is a former associate from the defunct Software Architects and a good friend. No doubt that SQL Server 2005 and 2008 have a lot of nice reporting features for sure; the problem that I have with them is they’re not terribly quick to access. I still hear people today mentioning that miss the old “taskpad” from EM of yesteryear. Therefore, keeping stockpiled a number of quick scripts to access the newest versions of SQL Server is a worthwhile endeavor, especially since all of, or most of, the old ones from SQL Server 7 and 2000 may or may not work in the future. Anyway, check this out and see if you can use it, or add to it, to get stats on your SQL Server files.

 

Lee

-----------------------------------------

 
Glad someone is thinking around here.

 

 

 
SCRIPT: Get the script

TAGS:


Posted in:   Tags: ,
blog comments powered by Disqus

by Lee Everest, M.S.

Info

Poll

Do you use Azure or cloud in your organization?



Show Results

Ads

Search


Month List

Calendar

«  May 2012  »
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910
View posts in large calendar

Tags

Disclaimer
The opinions, code, examples, et.al. expressed herein are my own personal opinions and do not represent my employer's view in any way, shape form, or fashion.  All code for demonstration purposes - no guarantees, either written or implied, are made.

© Copyright 2012 Lee Everest's SQL Server, etc. weblog