It’s early in the morning, and you’ve got disk space problems… log file, right? Yep. OK, we need a script that will tell us what we need to know ASAP. Since i experienced this issue multiple times…and since they always happened on Sunday morning…just before i was going to church (how much more inconvenient can it get?)…i created just such a script. Using two CTE’s i first gather the information i need about the database data files, and then the database log files. Since there can be multiple physical files for either type, i max and sum the needed values before grouping. Then, i combine that data with sys.database information. The result gives me almost all i need to know in a single picture…i’m ready then, with a simple “xp_fixeddrives” to get straight to fixing things. Continue reading
Categories
Tags
Administration Backups cluster Data Import drop user Errors Excel Full-Text index Import LInes of Code; Linked Server Perfmon Performance Performance Counters Performance Tuning SQL Sql 2000 SQL 2005 SQL 2008 SQL 2008 SSMS Sql Alerts Sql Cluster SQL Job history SQL Schema SQL Server 2005 SQL Server Agent SSIS packages SSMS SSRSPast Posts
- May 2012 (1)
- April 2012 (1)
- March 2012 (2)
- February 2012 (2)
- January 2012 (1)
- December 2011 (3)
- November 2011 (1)
- October 2011 (2)
- September 2011 (2)
- August 2011 (5)
- July 2011 (7)
- April 2011 (2)
- February 2010 (2)
- October 2009 (1)
Visitors