SlideShare una empresa de Scribd logo
1 de 22
TOP 10 ADMIN 
MISTAKES ON SQL 
SERVER 
Kevin Kline 
• Director of Engineering Services, SQL Sentry 
• SQL Server MVP since 2003 
• Twitter, FB, LI: KEKline 
• Blog: http://KevinEKline.com, http://ForITPros.com
AGENDA 
• About SQL Sentry 
• The Top 10 Countdown: DBA Mistakes on 
Microsoft SQL Server 
o Mistakes come in surprising forms 
o Often people & process, instead of technology 
• Summary, Resources, and Q&A
FOR FRIENDS OF SQL SENTRY 
• Free Plan Explorer download: 
http://www.sqlsentry.net/plan-explorer/ 
• Free query tuning consultations: 
http://answers.sqlperformance.com. 
• Free new ebook (regularly $10) to attendees. 
Send request to sales@sqlsentry.net. 
• SQL Server educational videos, scripts, and 
slides: http://SQLSentry.TV 
• Tuning blog: http://www.sqlperformance.com/ 
• Monthly eNews tips and tricks: 
http://www.sqlsentry.net/newsletter-archive.asp
TOOLS FROM SQL SENTRY
OTHER TOP SQL SERVER MISTAKES 
Excludes SQL Server mistakes 
that are primarily development or 
design in nature: 
o Inadequate normalization and 
database design 
o Unknown scalability 
requirements 
o No baselines or benchmarks 
o Indexing issues 
o Query tuning ignorance
10. DISKS – THINKING SPACE BUT NOT IO 
• Frequently think about disk subsystems only in terms of 
disk space, not IO load. 
• Without this knowledge, the following problems occur: 
o Inadequate fault tolerance 
o Insufficient IO: 
• OLTP requires high transactions/sec 
• OLAP requires high MB transfers/sec 
o Poor choice of RAID type, controllers, channels 
o Not enough disk spindles 
• SSD is a game changer for IO!
9. BUSINESS IGNORANCE 
• As the IT professional, you should know how SQL Server 
works at an “internals” level. 
o What is checkpoint? Lazywriter? 
o How is TempDB used? What’s in the plan cache? 
• The DBA is the guardian of the corporate data assets. 
• As the liaison between business and IT, you should know how 
For more tech info: 
- SQLPASS.org 
- SQL University 
- SQL Crunch 
- SQLBlog.com 
and in what ways your servers are used. 
o Who cares if this app is down? How much does the downtime cost the company? 
o What are the business cycles? 
o When are the best downtimes? 
o Baseline? Benchmarks? What is normal?
BONUS BLUNDER: NOT ASKING… 
• …for help: 
• Forums vs Support: know the value 
• #sqlhelp and Twitter 
• …for mentoring: 
• Senior bloggers love to mentor!
8. NO TROUBLESHOOTING 
METHODOLOGY 
• When the chips are down, the DBA needs a 
strong, step-by-step methodology for root-cause 
analysis. Without one, you get: 
o Missed errors and problems 
o Errors resulting data loss and catastrophic failure 
o Poor response times and breached SLAs 
o Lost credibility 
• Don’t have a methodology? Check out End-to- 
End Troubleshooting on http://SQLSentry.TV 
• SQL Server Troubleshooting Guide by J. 
Kehayias on http://www.simple-talk.com
BONUS BLUNDER: REACTIVE NOT 
PROACTIVE 
• DEMO
DEMO: ERROR NOTIFICATIONS
7. GOING WITH THE DEFAULTS 
• SQL Server installation defaults are intended to get the 
server up and running, but not running optimally: 
o Auto-grow and Auto-shrink on databasese 
o Auto sizing of auto-growing databases 
o Default filegroups 
o Minor issues can become major issues: 
• MAXDOP 
• FILLFACTOR 
o Many server- and database-level configuration settings
6. SECURITY AS AN AFTERTHOUGHT 
• SQL Injection is the #1 hack on the internet today. 
o Remarkably, we knew as much about preventing SQL Injection ten years 
ago as we do today. 
• Plan ahead of time to minimize issues: 
o Ensure the least privileges principle for applications running on your servers 
o How much surface area do your servers expose? 
o Who has access to your servers? 
o How do you find out the who, what, and when of a breach? 
• See my session Understanding & Preventing 
SQL Injection for more info
5. INADEQUATE AUTOMATION 
• Automation is the means by which DBAs work “smarter” 
instead of “harder”. Ironically, it takes a lot of work at the 
outset to automate. 
• Without automation, DBAs must deal with: 
o Manual processes prone to error, omission, and forgetfulness 
o Inability to scale environment to multiple servers 
o Time constraints from fire-fighter and script-pusher modes 
• Examples of working smarter instead of harder: 
o Automated error notification 
o Scheduled jobs 
o Lots of scripts, not too much GUI 
Automation made easy 
with PowerShell and/or 
WMI: 
- PowerGUI 
- Scriptomatic
4. WRONG FEATURE OR TECHNIQUE 
FOR THE JOB 
• DBA’s are the “performance engineer” for their corporation’s 
IT applications. 
• It’s imperative that the most appropriate feature be applied to 
each business requirement. Otherwise: 
o Brittle applications 
o Applications complexity 
o Excess resource consumption 
o “Ooooh! Shiny!” 
o Design reflects the current “fad” 
• Axiom: There are no IT projects. There are business projects 
solved using IT.
3. APATHY ABOUT CHANGE 
MANAGEMENT 
• Change management is important! Without it, DBAs face: 
o Changes that leave things worse than they started 
o Piecemeal rollbacks that cripple applications 
o Inconsistent support across applications and servers 
• Change control versus Change management? 
• Proper change management means: 
o Key stakeholders have a say in Go-NoGo (CM board) 
o Performed at pre-planned times and within a defined time limit 
o Change is tested and verified to have no effect or positive effect on production 
environment 
o Changes are isolated, atomic, and reversible
2. INADEQUATE PREVENTATIVE 
MAINTENANCE 
• Proper preventative maintenance (PM) helps you: 
o Catch issue before they become problems 
o Ensure optimal performance 
o Perform resource intensive operations with few, if any, users on the system 
• PM on SQL Server should include: 
o Database consistency checks (DBCC) and CHECKIDENT 
o Backups with verification & Restore checks 
o Defragmentation, Fill factor, Pad Index 
o Index Statistics 
• Don’t rely on the Database Maintenance Wizard!
BONUS BLUNDER: 
REINVENTING THE WHEEL 
• Most PM has already been written and vetted by 
others. 
• Check out: 
o www.sqlfool.com 
o www.olahallengren.com
1. BACKUPS <> RECOVERY 
DBAs often don’t test backups or recoveries as they 
should. Causes lots of problems: 
o Can you meet your SLA? RTO? RPO? 
o Not certain that backups are good: verified and available? 
o Where’s all the data, files, It’s 
DLLs, etc for recovery? 
o Got all of the databases that are needed? 
o Haven’t tested a full, ground-up restore: 
All About 
The Data, All 
The Time, Every 
• What if you have to reinstall everything? 
o One of the great things about VM recovery! 
• The importance of recovery: the Lost Job scenario 
o Can you actually restore older, archived data? 
Time
SUMMARY
RESOURCES 
• http://www.sqlcat.com - Excellent source of SQL 
Server best practices, white papers, etc. 
• Paul Randal and all the blogs at SQLSkills – 
http://www.sqlskills.com/blogs/paul/ et al 
• http://SQLPerformance.com 
• http://www.sqlpass.org
Q & A 
• Send questions to me at: kkline@sqlsentry.net 
• Twitter, Facebook, LinkedIn at KEKline 
• Slides at http://SQLSentry.TV 
• Kevin’s IT leadership and soft-skills content at 
http://ForITPros.com 
THANK YOU!

Más contenido relacionado

La actualidad más candente

What Is Slowing My Application Releases?
What Is Slowing My Application Releases?What Is Slowing My Application Releases?
What Is Slowing My Application Releases?Datical
 
VMWare Winnipeg Forum - 2011
VMWare Winnipeg Forum - 2011VMWare Winnipeg Forum - 2011
VMWare Winnipeg Forum - 2011asedha
 
Without Self-Service Operations, the Cloud is Just Expensive Hosting 2.0 - (a...
Without Self-Service Operations, the Cloud is Just Expensive Hosting 2.0 - (a...Without Self-Service Operations, the Cloud is Just Expensive Hosting 2.0 - (a...
Without Self-Service Operations, the Cloud is Just Expensive Hosting 2.0 - (a...dev2ops
 
DevOps Kaizen: Find and Fix What is Really Behind Your Problems
DevOps Kaizen: Find and Fix What is Really Behind Your ProblemsDevOps Kaizen: Find and Fix What is Really Behind Your Problems
DevOps Kaizen: Find and Fix What is Really Behind Your Problemsdev2ops
 
The 7 Principles of DevOps and Cloud Applications
The 7 Principles of DevOps and Cloud ApplicationsThe 7 Principles of DevOps and Cloud Applications
The 7 Principles of DevOps and Cloud ApplicationsSolarWinds
 
Release & Change management in salesforce
Release & Change management in salesforceRelease & Change management in salesforce
Release & Change management in salesforceKalyan Lanka ☁
 
DEVNET-2015 DevOps In Depth - Damon Edwards on DevOps Kaizen: Building an Ent...
DEVNET-2015	DevOps In Depth - Damon Edwards on DevOps Kaizen: Building an Ent...DEVNET-2015	DevOps In Depth - Damon Edwards on DevOps Kaizen: Building an Ent...
DEVNET-2015 DevOps In Depth - Damon Edwards on DevOps Kaizen: Building an Ent...Cisco DevNet
 
Forming Agile Scrum Teams to Manage DITA Infrastructure
Forming Agile Scrum Teams to Manage DITA InfrastructureForming Agile Scrum Teams to Manage DITA Infrastructure
Forming Agile Scrum Teams to Manage DITA InfrastructureStan Doherty
 
DevOps 101 for Government
DevOps 101 for GovernmentDevOps 101 for Government
DevOps 101 for GovernmentSanjeev Sharma
 
From Agile Development to Agile Operations (QCon SF 2009)
From Agile Development to Agile Operations (QCon SF 2009)From Agile Development to Agile Operations (QCon SF 2009)
From Agile Development to Agile Operations (QCon SF 2009)Stuart Charlton
 
DevOps feedback loops
DevOps feedback loopsDevOps feedback loops
DevOps feedback loopsPaul Peissner
 
Evolving Team Structure in DevOps
Evolving Team Structure in DevOpsEvolving Team Structure in DevOps
Evolving Team Structure in DevOpsSherry Chang
 
Agile 2014- Metrics driven development and devops
Agile 2014- Metrics driven development and devopsAgile 2014- Metrics driven development and devops
Agile 2014- Metrics driven development and devopsKarthik Gaekwad
 
DevOps Transformation - Another View
DevOps Transformation - Another ViewDevOps Transformation - Another View
DevOps Transformation - Another ViewAgron Fazliu
 
How Open Source Embiggens Salesforce.com
How Open Source Embiggens Salesforce.comHow Open Source Embiggens Salesforce.com
How Open Source Embiggens Salesforce.comSalesforce Engineering
 
Enabling DevOps in the cloud - Federal Cloud Innovation Center
Enabling DevOps in the cloud - Federal Cloud Innovation CenterEnabling DevOps in the cloud - Federal Cloud Innovation Center
Enabling DevOps in the cloud - Federal Cloud Innovation CenterSanjeev Sharma
 
DevOps and Cloud Tips and Techniques to Revolutionize Your SDLC
DevOps and Cloud Tips and Techniques to Revolutionize Your SDLCDevOps and Cloud Tips and Techniques to Revolutionize Your SDLC
DevOps and Cloud Tips and Techniques to Revolutionize Your SDLCCA Technologies
 
Connect Power BI & Tableau to Cognos Data
Connect Power BI & Tableau to Cognos DataConnect Power BI & Tableau to Cognos Data
Connect Power BI & Tableau to Cognos DataSenturus
 

La actualidad más candente (20)

What Is Slowing My Application Releases?
What Is Slowing My Application Releases?What Is Slowing My Application Releases?
What Is Slowing My Application Releases?
 
VMWare Winnipeg Forum - 2011
VMWare Winnipeg Forum - 2011VMWare Winnipeg Forum - 2011
VMWare Winnipeg Forum - 2011
 
Without Self-Service Operations, the Cloud is Just Expensive Hosting 2.0 - (a...
Without Self-Service Operations, the Cloud is Just Expensive Hosting 2.0 - (a...Without Self-Service Operations, the Cloud is Just Expensive Hosting 2.0 - (a...
Without Self-Service Operations, the Cloud is Just Expensive Hosting 2.0 - (a...
 
DevOps Kaizen: Find and Fix What is Really Behind Your Problems
DevOps Kaizen: Find and Fix What is Really Behind Your ProblemsDevOps Kaizen: Find and Fix What is Really Behind Your Problems
DevOps Kaizen: Find and Fix What is Really Behind Your Problems
 
The 7 Principles of DevOps and Cloud Applications
The 7 Principles of DevOps and Cloud ApplicationsThe 7 Principles of DevOps and Cloud Applications
The 7 Principles of DevOps and Cloud Applications
 
Release & Change management in salesforce
Release & Change management in salesforceRelease & Change management in salesforce
Release & Change management in salesforce
 
DEVNET-2015 DevOps In Depth - Damon Edwards on DevOps Kaizen: Building an Ent...
DEVNET-2015	DevOps In Depth - Damon Edwards on DevOps Kaizen: Building an Ent...DEVNET-2015	DevOps In Depth - Damon Edwards on DevOps Kaizen: Building an Ent...
DEVNET-2015 DevOps In Depth - Damon Edwards on DevOps Kaizen: Building an Ent...
 
Forming Agile Scrum Teams to Manage DITA Infrastructure
Forming Agile Scrum Teams to Manage DITA InfrastructureForming Agile Scrum Teams to Manage DITA Infrastructure
Forming Agile Scrum Teams to Manage DITA Infrastructure
 
DevOps 101 for Government
DevOps 101 for GovernmentDevOps 101 for Government
DevOps 101 for Government
 
From Agile Development to Agile Operations (QCon SF 2009)
From Agile Development to Agile Operations (QCon SF 2009)From Agile Development to Agile Operations (QCon SF 2009)
From Agile Development to Agile Operations (QCon SF 2009)
 
DevOps feedback loops
DevOps feedback loopsDevOps feedback loops
DevOps feedback loops
 
Evolving Team Structure in DevOps
Evolving Team Structure in DevOpsEvolving Team Structure in DevOps
Evolving Team Structure in DevOps
 
Agile 2014- Metrics driven development and devops
Agile 2014- Metrics driven development and devopsAgile 2014- Metrics driven development and devops
Agile 2014- Metrics driven development and devops
 
DevOps Transformation - Another View
DevOps Transformation - Another ViewDevOps Transformation - Another View
DevOps Transformation - Another View
 
How Open Source Embiggens Salesforce.com
How Open Source Embiggens Salesforce.comHow Open Source Embiggens Salesforce.com
How Open Source Embiggens Salesforce.com
 
Enabling DevOps in the cloud - Federal Cloud Innovation Center
Enabling DevOps in the cloud - Federal Cloud Innovation CenterEnabling DevOps in the cloud - Federal Cloud Innovation Center
Enabling DevOps in the cloud - Federal Cloud Innovation Center
 
DevOps 101
DevOps 101DevOps 101
DevOps 101
 
Bn1006 demo ppt devops
Bn1006 demo ppt devopsBn1006 demo ppt devops
Bn1006 demo ppt devops
 
DevOps and Cloud Tips and Techniques to Revolutionize Your SDLC
DevOps and Cloud Tips and Techniques to Revolutionize Your SDLCDevOps and Cloud Tips and Techniques to Revolutionize Your SDLC
DevOps and Cloud Tips and Techniques to Revolutionize Your SDLC
 
Connect Power BI & Tableau to Cognos Data
Connect Power BI & Tableau to Cognos DataConnect Power BI & Tableau to Cognos Data
Connect Power BI & Tableau to Cognos Data
 

Destacado

End-to-end Troubleshooting Checklist for Microsoft SQL Server
End-to-end Troubleshooting Checklist for Microsoft SQL ServerEnd-to-end Troubleshooting Checklist for Microsoft SQL Server
End-to-end Troubleshooting Checklist for Microsoft SQL ServerKevin Kline
 
Ten query tuning techniques every SQL Server programmer should know
Ten query tuning techniques every SQL Server programmer should knowTen query tuning techniques every SQL Server programmer should know
Ten query tuning techniques every SQL Server programmer should knowKevin Kline
 
Ultimate Free SQL Server Toolkit
Ultimate Free SQL Server ToolkitUltimate Free SQL Server Toolkit
Ultimate Free SQL Server ToolkitKevin Kline
 
Microsoft SQL Server internals & architecture
Microsoft SQL Server internals & architectureMicrosoft SQL Server internals & architecture
Microsoft SQL Server internals & architectureKevin Kline
 
Reduce latency and boost sql server io performance
Reduce latency and boost sql server io performanceReduce latency and boost sql server io performance
Reduce latency and boost sql server io performanceKevin Kline
 
Understanding and preventing sql injection attacks
Understanding and preventing sql injection attacksUnderstanding and preventing sql injection attacks
Understanding and preventing sql injection attacksKevin Kline
 
Convince me – persuasion techniques that get things done
Convince me – persuasion techniques that get things doneConvince me – persuasion techniques that get things done
Convince me – persuasion techniques that get things doneKevin Kline
 
Who wants to be a DBA? Roles and Responsibilities
Who wants to be a DBA? Roles and ResponsibilitiesWho wants to be a DBA? Roles and Responsibilities
Who wants to be a DBA? Roles and ResponsibilitiesKevin Kline
 
The Great American Novel? TL;DR Writing for Web and Social in the Age of Brevity
The Great American Novel? TL;DR Writing for Web and Social in the Age of BrevityThe Great American Novel? TL;DR Writing for Web and Social in the Age of Brevity
The Great American Novel? TL;DR Writing for Web and Social in the Age of BrevityJeffrey Stevens
 
The Presentation Come-Back Kid
The Presentation Come-Back KidThe Presentation Come-Back Kid
The Presentation Come-Back KidEthos3
 
The Art of the Presentation
The Art of the PresentationThe Art of the Presentation
The Art of the PresentationJeffrey Stevens
 
10 Ways Your Boss Kills Employee Motivation
10 Ways Your Boss Kills Employee Motivation10 Ways Your Boss Kills Employee Motivation
10 Ways Your Boss Kills Employee MotivationOfficevibe
 
10 Things your Audience Hates About your Presentation
10 Things your Audience Hates About your Presentation10 Things your Audience Hates About your Presentation
10 Things your Audience Hates About your PresentationStinson
 
The Physical Interface
The Physical InterfaceThe Physical Interface
The Physical InterfaceJosh Clark
 

Destacado (15)

End-to-end Troubleshooting Checklist for Microsoft SQL Server
End-to-end Troubleshooting Checklist for Microsoft SQL ServerEnd-to-end Troubleshooting Checklist for Microsoft SQL Server
End-to-end Troubleshooting Checklist for Microsoft SQL Server
 
Ten query tuning techniques every SQL Server programmer should know
Ten query tuning techniques every SQL Server programmer should knowTen query tuning techniques every SQL Server programmer should know
Ten query tuning techniques every SQL Server programmer should know
 
Ultimate Free SQL Server Toolkit
Ultimate Free SQL Server ToolkitUltimate Free SQL Server Toolkit
Ultimate Free SQL Server Toolkit
 
Microsoft SQL Server internals & architecture
Microsoft SQL Server internals & architectureMicrosoft SQL Server internals & architecture
Microsoft SQL Server internals & architecture
 
Reduce latency and boost sql server io performance
Reduce latency and boost sql server io performanceReduce latency and boost sql server io performance
Reduce latency and boost sql server io performance
 
Understanding and preventing sql injection attacks
Understanding and preventing sql injection attacksUnderstanding and preventing sql injection attacks
Understanding and preventing sql injection attacks
 
Convince me – persuasion techniques that get things done
Convince me – persuasion techniques that get things doneConvince me – persuasion techniques that get things done
Convince me – persuasion techniques that get things done
 
Who wants to be a DBA? Roles and Responsibilities
Who wants to be a DBA? Roles and ResponsibilitiesWho wants to be a DBA? Roles and Responsibilities
Who wants to be a DBA? Roles and Responsibilities
 
The Great American Novel? TL;DR Writing for Web and Social in the Age of Brevity
The Great American Novel? TL;DR Writing for Web and Social in the Age of BrevityThe Great American Novel? TL;DR Writing for Web and Social in the Age of Brevity
The Great American Novel? TL;DR Writing for Web and Social in the Age of Brevity
 
The Presentation Come-Back Kid
The Presentation Come-Back KidThe Presentation Come-Back Kid
The Presentation Come-Back Kid
 
The Art of the Presentation
The Art of the PresentationThe Art of the Presentation
The Art of the Presentation
 
10 Ways Your Boss Kills Employee Motivation
10 Ways Your Boss Kills Employee Motivation10 Ways Your Boss Kills Employee Motivation
10 Ways Your Boss Kills Employee Motivation
 
10 Things your Audience Hates About your Presentation
10 Things your Audience Hates About your Presentation10 Things your Audience Hates About your Presentation
10 Things your Audience Hates About your Presentation
 
The Physical Interface
The Physical InterfaceThe Physical Interface
The Physical Interface
 
Build Features, Not Apps
Build Features, Not AppsBuild Features, Not Apps
Build Features, Not Apps
 

Similar a Top 10 DBA Mistakes on Microsoft SQL Server

Design Reviews for Operations - Velocity Europe 2014
Design Reviews for Operations - Velocity Europe 2014Design Reviews for Operations - Velocity Europe 2014
Design Reviews for Operations - Velocity Europe 2014Mandi Walls
 
Oracle performance project public
Oracle performance project publicOracle performance project public
Oracle performance project publicCarlos Oliveira
 
DBA Tips and Tricks - Presentation
DBA Tips and Tricks - PresentationDBA Tips and Tricks - Presentation
DBA Tips and Tricks - PresentationFrancisco Alvarez
 
Pearls and Must-Have Tools for the Modern Web / .NET Developer
Pearls and Must-Have Tools for the Modern Web / .NET DeveloperPearls and Must-Have Tools for the Modern Web / .NET Developer
Pearls and Must-Have Tools for the Modern Web / .NET DeveloperOfer Zelig
 
Best Practices for WordPress in Enterprise
Best Practices for WordPress in EnterpriseBest Practices for WordPress in Enterprise
Best Practices for WordPress in EnterpriseTaylor Lovett
 
Measure and increase developer productivity with help of Severless by Kazulki...
Measure and increase developer productivity with help of Severless by Kazulki...Measure and increase developer productivity with help of Severless by Kazulki...
Measure and increase developer productivity with help of Severless by Kazulki...Vadym Kazulkin
 
Common SQL Server Mistakes and How to Avoid Them with Tim Radney
Common SQL Server Mistakes and How to Avoid Them with Tim RadneyCommon SQL Server Mistakes and How to Avoid Them with Tim Radney
Common SQL Server Mistakes and How to Avoid Them with Tim RadneyEmbarcadero Technologies
 
How to manage and monitor large sql server estates
How to manage and monitor large sql server estatesHow to manage and monitor large sql server estates
How to manage and monitor large sql server estatesRed Gate Software
 
Geek Sync | Is Your Database Environment Ready for DevOps?
Geek Sync | Is Your Database Environment Ready for DevOps?Geek Sync | Is Your Database Environment Ready for DevOps?
Geek Sync | Is Your Database Environment Ready for DevOps?IDERA Software
 
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...BIWUG
 
15 tips for bullet proof requirements analysis on SharePoint projects
15 tips for bullet proof requirements analysis on SharePoint projects15 tips for bullet proof requirements analysis on SharePoint projects
15 tips for bullet proof requirements analysis on SharePoint projectsDocFluix, LLC
 
Software development planning and essentials
Software development planning and essentialsSoftware development planning and essentials
Software development planning and essentialsRajesh P
 
Software development planning and essentials
Software development planning and essentialsSoftware development planning and essentials
Software development planning and essentialsRajesh P
 
SharePoint Saturday San Antonio: Workflow 2013
SharePoint Saturday San Antonio: Workflow 2013SharePoint Saturday San Antonio: Workflow 2013
SharePoint Saturday San Antonio: Workflow 2013Sam Larko
 
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent OzarGeek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent OzarIDERA Software
 
Optimizing Access with SQL Server
Optimizing Access with SQL ServerOptimizing Access with SQL Server
Optimizing Access with SQL ServerPRPASS Chapter
 
Why retail companies can't afford database downtime
Why retail companies can't afford database downtimeWhy retail companies can't afford database downtime
Why retail companies can't afford database downtimeDBmaestro - Database DevOps
 
Always On Availability Group Maintenance Operations
Always On Availability Group Maintenance OperationsAlways On Availability Group Maintenance Operations
Always On Availability Group Maintenance OperationsJohn Martin
 
SAP #BOBJ #BI 4.1 Upgrade Webcast Series 3: BI 4.1 Sizing and Virtualization
SAP #BOBJ #BI 4.1 Upgrade Webcast Series 3: BI 4.1 Sizing and VirtualizationSAP #BOBJ #BI 4.1 Upgrade Webcast Series 3: BI 4.1 Sizing and Virtualization
SAP #BOBJ #BI 4.1 Upgrade Webcast Series 3: BI 4.1 Sizing and VirtualizationSAP Analytics
 

Similar a Top 10 DBA Mistakes on Microsoft SQL Server (20)

Let's get along
Let's get alongLet's get along
Let's get along
 
Design Reviews for Operations - Velocity Europe 2014
Design Reviews for Operations - Velocity Europe 2014Design Reviews for Operations - Velocity Europe 2014
Design Reviews for Operations - Velocity Europe 2014
 
Oracle performance project public
Oracle performance project publicOracle performance project public
Oracle performance project public
 
DBA Tips and Tricks - Presentation
DBA Tips and Tricks - PresentationDBA Tips and Tricks - Presentation
DBA Tips and Tricks - Presentation
 
Pearls and Must-Have Tools for the Modern Web / .NET Developer
Pearls and Must-Have Tools for the Modern Web / .NET DeveloperPearls and Must-Have Tools for the Modern Web / .NET Developer
Pearls and Must-Have Tools for the Modern Web / .NET Developer
 
Best Practices for WordPress in Enterprise
Best Practices for WordPress in EnterpriseBest Practices for WordPress in Enterprise
Best Practices for WordPress in Enterprise
 
Measure and increase developer productivity with help of Severless by Kazulki...
Measure and increase developer productivity with help of Severless by Kazulki...Measure and increase developer productivity with help of Severless by Kazulki...
Measure and increase developer productivity with help of Severless by Kazulki...
 
Common SQL Server Mistakes and How to Avoid Them with Tim Radney
Common SQL Server Mistakes and How to Avoid Them with Tim RadneyCommon SQL Server Mistakes and How to Avoid Them with Tim Radney
Common SQL Server Mistakes and How to Avoid Them with Tim Radney
 
How to manage and monitor large sql server estates
How to manage and monitor large sql server estatesHow to manage and monitor large sql server estates
How to manage and monitor large sql server estates
 
Geek Sync | Is Your Database Environment Ready for DevOps?
Geek Sync | Is Your Database Environment Ready for DevOps?Geek Sync | Is Your Database Environment Ready for DevOps?
Geek Sync | Is Your Database Environment Ready for DevOps?
 
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
 
15 tips for bullet proof requirements analysis on SharePoint projects
15 tips for bullet proof requirements analysis on SharePoint projects15 tips for bullet proof requirements analysis on SharePoint projects
15 tips for bullet proof requirements analysis on SharePoint projects
 
Software development planning and essentials
Software development planning and essentialsSoftware development planning and essentials
Software development planning and essentials
 
Software development planning and essentials
Software development planning and essentialsSoftware development planning and essentials
Software development planning and essentials
 
SharePoint Saturday San Antonio: Workflow 2013
SharePoint Saturday San Antonio: Workflow 2013SharePoint Saturday San Antonio: Workflow 2013
SharePoint Saturday San Antonio: Workflow 2013
 
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent OzarGeek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
 
Optimizing Access with SQL Server
Optimizing Access with SQL ServerOptimizing Access with SQL Server
Optimizing Access with SQL Server
 
Why retail companies can't afford database downtime
Why retail companies can't afford database downtimeWhy retail companies can't afford database downtime
Why retail companies can't afford database downtime
 
Always On Availability Group Maintenance Operations
Always On Availability Group Maintenance OperationsAlways On Availability Group Maintenance Operations
Always On Availability Group Maintenance Operations
 
SAP #BOBJ #BI 4.1 Upgrade Webcast Series 3: BI 4.1 Sizing and Virtualization
SAP #BOBJ #BI 4.1 Upgrade Webcast Series 3: BI 4.1 Sizing and VirtualizationSAP #BOBJ #BI 4.1 Upgrade Webcast Series 3: BI 4.1 Sizing and Virtualization
SAP #BOBJ #BI 4.1 Upgrade Webcast Series 3: BI 4.1 Sizing and Virtualization
 

Último

100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 

Último (20)

100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 

Top 10 DBA Mistakes on Microsoft SQL Server

  • 1. TOP 10 ADMIN MISTAKES ON SQL SERVER Kevin Kline • Director of Engineering Services, SQL Sentry • SQL Server MVP since 2003 • Twitter, FB, LI: KEKline • Blog: http://KevinEKline.com, http://ForITPros.com
  • 2. AGENDA • About SQL Sentry • The Top 10 Countdown: DBA Mistakes on Microsoft SQL Server o Mistakes come in surprising forms o Often people & process, instead of technology • Summary, Resources, and Q&A
  • 3. FOR FRIENDS OF SQL SENTRY • Free Plan Explorer download: http://www.sqlsentry.net/plan-explorer/ • Free query tuning consultations: http://answers.sqlperformance.com. • Free new ebook (regularly $10) to attendees. Send request to sales@sqlsentry.net. • SQL Server educational videos, scripts, and slides: http://SQLSentry.TV • Tuning blog: http://www.sqlperformance.com/ • Monthly eNews tips and tricks: http://www.sqlsentry.net/newsletter-archive.asp
  • 4. TOOLS FROM SQL SENTRY
  • 5. OTHER TOP SQL SERVER MISTAKES Excludes SQL Server mistakes that are primarily development or design in nature: o Inadequate normalization and database design o Unknown scalability requirements o No baselines or benchmarks o Indexing issues o Query tuning ignorance
  • 6. 10. DISKS – THINKING SPACE BUT NOT IO • Frequently think about disk subsystems only in terms of disk space, not IO load. • Without this knowledge, the following problems occur: o Inadequate fault tolerance o Insufficient IO: • OLTP requires high transactions/sec • OLAP requires high MB transfers/sec o Poor choice of RAID type, controllers, channels o Not enough disk spindles • SSD is a game changer for IO!
  • 7. 9. BUSINESS IGNORANCE • As the IT professional, you should know how SQL Server works at an “internals” level. o What is checkpoint? Lazywriter? o How is TempDB used? What’s in the plan cache? • The DBA is the guardian of the corporate data assets. • As the liaison between business and IT, you should know how For more tech info: - SQLPASS.org - SQL University - SQL Crunch - SQLBlog.com and in what ways your servers are used. o Who cares if this app is down? How much does the downtime cost the company? o What are the business cycles? o When are the best downtimes? o Baseline? Benchmarks? What is normal?
  • 8. BONUS BLUNDER: NOT ASKING… • …for help: • Forums vs Support: know the value • #sqlhelp and Twitter • …for mentoring: • Senior bloggers love to mentor!
  • 9. 8. NO TROUBLESHOOTING METHODOLOGY • When the chips are down, the DBA needs a strong, step-by-step methodology for root-cause analysis. Without one, you get: o Missed errors and problems o Errors resulting data loss and catastrophic failure o Poor response times and breached SLAs o Lost credibility • Don’t have a methodology? Check out End-to- End Troubleshooting on http://SQLSentry.TV • SQL Server Troubleshooting Guide by J. Kehayias on http://www.simple-talk.com
  • 10. BONUS BLUNDER: REACTIVE NOT PROACTIVE • DEMO
  • 12. 7. GOING WITH THE DEFAULTS • SQL Server installation defaults are intended to get the server up and running, but not running optimally: o Auto-grow and Auto-shrink on databasese o Auto sizing of auto-growing databases o Default filegroups o Minor issues can become major issues: • MAXDOP • FILLFACTOR o Many server- and database-level configuration settings
  • 13. 6. SECURITY AS AN AFTERTHOUGHT • SQL Injection is the #1 hack on the internet today. o Remarkably, we knew as much about preventing SQL Injection ten years ago as we do today. • Plan ahead of time to minimize issues: o Ensure the least privileges principle for applications running on your servers o How much surface area do your servers expose? o Who has access to your servers? o How do you find out the who, what, and when of a breach? • See my session Understanding & Preventing SQL Injection for more info
  • 14. 5. INADEQUATE AUTOMATION • Automation is the means by which DBAs work “smarter” instead of “harder”. Ironically, it takes a lot of work at the outset to automate. • Without automation, DBAs must deal with: o Manual processes prone to error, omission, and forgetfulness o Inability to scale environment to multiple servers o Time constraints from fire-fighter and script-pusher modes • Examples of working smarter instead of harder: o Automated error notification o Scheduled jobs o Lots of scripts, not too much GUI Automation made easy with PowerShell and/or WMI: - PowerGUI - Scriptomatic
  • 15. 4. WRONG FEATURE OR TECHNIQUE FOR THE JOB • DBA’s are the “performance engineer” for their corporation’s IT applications. • It’s imperative that the most appropriate feature be applied to each business requirement. Otherwise: o Brittle applications o Applications complexity o Excess resource consumption o “Ooooh! Shiny!” o Design reflects the current “fad” • Axiom: There are no IT projects. There are business projects solved using IT.
  • 16. 3. APATHY ABOUT CHANGE MANAGEMENT • Change management is important! Without it, DBAs face: o Changes that leave things worse than they started o Piecemeal rollbacks that cripple applications o Inconsistent support across applications and servers • Change control versus Change management? • Proper change management means: o Key stakeholders have a say in Go-NoGo (CM board) o Performed at pre-planned times and within a defined time limit o Change is tested and verified to have no effect or positive effect on production environment o Changes are isolated, atomic, and reversible
  • 17. 2. INADEQUATE PREVENTATIVE MAINTENANCE • Proper preventative maintenance (PM) helps you: o Catch issue before they become problems o Ensure optimal performance o Perform resource intensive operations with few, if any, users on the system • PM on SQL Server should include: o Database consistency checks (DBCC) and CHECKIDENT o Backups with verification & Restore checks o Defragmentation, Fill factor, Pad Index o Index Statistics • Don’t rely on the Database Maintenance Wizard!
  • 18. BONUS BLUNDER: REINVENTING THE WHEEL • Most PM has already been written and vetted by others. • Check out: o www.sqlfool.com o www.olahallengren.com
  • 19. 1. BACKUPS <> RECOVERY DBAs often don’t test backups or recoveries as they should. Causes lots of problems: o Can you meet your SLA? RTO? RPO? o Not certain that backups are good: verified and available? o Where’s all the data, files, It’s DLLs, etc for recovery? o Got all of the databases that are needed? o Haven’t tested a full, ground-up restore: All About The Data, All The Time, Every • What if you have to reinstall everything? o One of the great things about VM recovery! • The importance of recovery: the Lost Job scenario o Can you actually restore older, archived data? Time
  • 21. RESOURCES • http://www.sqlcat.com - Excellent source of SQL Server best practices, white papers, etc. • Paul Randal and all the blogs at SQLSkills – http://www.sqlskills.com/blogs/paul/ et al • http://SQLPerformance.com • http://www.sqlpass.org
  • 22. Q & A • Send questions to me at: kkline@sqlsentry.net • Twitter, Facebook, LinkedIn at KEKline • Slides at http://SQLSentry.TV • Kevin’s IT leadership and soft-skills content at http://ForITPros.com THANK YOU!