Best Practices Every SQL Server DBA Must Know Pensacola
Best Practices Every SQL Server DBA Must Know Pensacola
Brad M McGehee
SQL Server MVP
Director of DBA Education
Red Gate Software
www.bradmcgehee.com
My Assumptions About You
• You may be a DBA Administrator or DBA Developer.
• You may be a part-time or full-time DBA.
• You probably have less than one year’s experience
as a SQL Server DBA, but you are familiar with SQL
Server basics.
Number of
best practices
implemented
• http://ola.hallengren.com/
• http://sqlfool.com/2009/06/index-defrag-script-v30/
• http://www.grics.qc.ca/YourSqlDba/index_en.shtml
Set Up Alerts for Critical Errors
• Create a SQL Server Event Alert for all events with a
severity of 19 [fatal] and higher.
• Have alerts sent to you or whoever is responsible
for day-to-day monitoring.
• Consider a third-party alerting tool if SQL Server
Alerts doesn’t meet all of your needs.
Create a Disaster Recovery Plan
• You must create a document that outlines, step-by-step, in
great detail, how you will recover your SQL Servers in the
case of any problem, small or large.
• You need to practice using the plan so you are familiar with it
and can easily implement it.
• Keep Microsoft SQL Server’s Product Support phone number
handy. Paste it near your computer.
• Remember: Most “disasters” are small, such as a corrupted
database. Big “disasters” occur very rarely, if ever. But you
need to be prepared for both.
Document Everything
• Yes, documentation is very boring, but it is very
critical to being a successful DBA. Be sure to
document:
• The installation and configuration of each instance.
• The installation and configuration of any application that uses SQL
Server as its back end (as related to SQL Server).
• Troubleshooting tasks, as the same problem may reoccur, and you
don’t want to reinvent the wheel.
• Any time any change is made to any instance for any reason.
• Be sure that documentation is easily available to
everyone who needs access to it.
Test Everything
• Before you make any change on a production SQL
Server, be sure you test it first in a test environment.
– NO EXCEPTIONS!
– I mean it!
– Really!
– No kidding.
– I wouldn’t lie to you.
– You don’t want to loose your job.
– You’d be crazy not listening to this advice.
– Civilization as we know it may lie in your hands.
• Contact me at:
– [email protected]
• Blogs:
– www.bradmcgehee.com
– www.twitter.com/bradmcgehee
Click Here for a free 14-day trial of the Red Gate SQL Server Toolbelt