160 likes | 281 Views
Utility Database. Chris Shaw @ SQLShaw Chris@SQLShaw.com. In case you wanted to know…. Microsoft SQL Server MVP Spent most of the last 15 years administering SQL Server http ://chrisshaw.wordpress.com / Chris@SQLShaw.com. Session Notes. Growing presentation Feedback is welcome
E N D
Utility Database Chris Shaw @SQLShaw Chris@SQLShaw.com
In case you wanted to know… • Microsoft SQL Server MVP • Spent most of the last 15 years administering SQL Server • http://chrisshaw.wordpress.com/ • Chris@SQLShaw.com
Session Notes • Growing presentation • Feedback is welcome • The Demo’s in your environment • This is just the starting point • Demo is designed to show you potential options - customize • Ask Questions • Feel free to email me • My environment • SQL Server Denali • Local Install • No Reporting Services on local install • Quiz Time • Is my impression accurate
Quiz Time • Do you have Daily Tasks • Check jobs • Check disk space • Read error Logs • Validate performance • Processors • Disk • Procedure Execution • Checking Indexes • Documenting growth • How do you do it?
What is a Utility Database? • A user defined, created database • Keeps information on your server about your server • Keeps the information you want as long as you want it • Presents information you want the way you want to see it • This is your database • Acts as a repository for you the DBA
Why use a Utility Database? • Centralize your information • Forecast your usage • Ease your daily tasks • Automation • See potential issues before they happen • Understanding the baseline • Be one step ahead • One View
My Report • Delivered by email every day • My daily check list • Mixed counter information • Hardware information • Processor Utilization • Disk Space Free • SQL Server information • Error logs • Failed Jobs • Report run times • Business information • Performance Indicators • Identity Checks
Demo • Building your database
Approach Styles • With a table between the query and the DayCheckList Table • DBCC FreeProcCache • Using CLR • Why all the nested procedures • When to archive the data
Demo • Building Your Report
What’s Next • Thresholds • Alerts • Auto Re-index • Ola Hallengren (http://ola.hallengren.com/) • DMV’s • Glenn Berry (http://sqlserverperformance.wordpress.com/) • Other than SQL Server • WMI • Don’t reinvent the wheel
Go Global • Start small • Add one at a time, see the use and then make a list of what items you need long term • Change the Schema • Add servers • SSIS • Linked Servers • Options • Data Collector • 3rd party tools • Report Server • ExecutionLog2
Summary • Utility databases answer questions like: • What procedure performs the worst? • Is the performance getting better or worse? • What is the percentage of growth on my databases? • What errors have been registered in the error log? • What jobs failed last night? • Can the database support the work load you are asking it to. • When will you need to upgrade
Questions Thank you, your feedback is welcome Chris@sqlshaw.com