Kevin Kline Director of Engineering Services, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI: KEKline Blog:

Slides:



Advertisements
Similar presentations
Burt King We will cover: Essentials --No command line needed here (mott) What is SQL Server How does it come to life What are the.
Advertisements

Help! My table is getting too big! How to divide and conquer SQL Relay 2014.
5 Common SQL Server Performance Issues Jason Hall-SQL Sentry, Dir of Client Services Blog-jasonhall.blogs.sqlsentry.net.
Common Mistakes Developers Make By Bryan Oliver SQL Server Mentor at SolidQ.
Module 4 Working with Databases. Module Overview Overview of SQL Server Databases Working with Files and Filegroups Moving Database Files.
Kevin Kline Director of Engineering Services, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI: KEKline Blog:
Challenge for all the Seniors (DBAs) QuestionAreaYou (Today) You (6 Months) You (1 Year) 1Design Tables 2Write Queries 3Deploy Changes 4Tune Queries 5Monitor.
SQL Server Best Practices Keep Your Database In Top Performance Shape and Maintain Effective Backups September, 2007 Richard Kokoski.
SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Utility Database Chris
Oracle Database Administration. Rana Almurshed 2 course objective After completing this course you should be able to: install, create and administrate.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
1 MS SQL Server 7.0 Project Demo by: Amritaputra Bhattacharya Avik Sarkar Kaushik Das Srijit Maiti.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
© 2010 Quest Software, Inc. ALL RIGHTS RESERVED Top 10 Admin Mistakes on Microsoft SQL Server Kevin Kline, Quest Software Microsoft MVP since 2004.
Oracle Challenges Parallelism Limitations Parallelism is the ability for a single query to be run across multiple processors or servers. Large queries.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
1 All Powder Board and Ski Oracle 9i Workbook Chapter 9: Database Administration Jerry Post Copyright © 2003.
Module 16: Performing Ongoing Database Maintenance
TOP10 DEV SKILLS TO MAKE YOUR DBA HAPPY Kevin Kline Director of Engineering Services, SQL Sentry SQL Server MVP since 2004 Twitter, FB, LI: KEKline Blog:
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Praveen Srivatsa Director| AstrhaSoft Consulting blogs.asthrasoft.com/praveens |
Digging Out From Corruption Eddie Wuerch, MCM - Principal, Database Performance - Salesforce Marketing Cloud Data protection and loss recovery with SQL.
Strategies for Working with Texas-sized Databases Robert L Davis Database Engineer
SQL Tips & Tricks Best practices from the field John Nelson Apps Systems Engineer Steve Thompson Senior Consultant,
Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -
Linkedin: dennisegraham Dennis E Graham Reporting For SQL Health.
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
Jeremy Kingry, eBECS | ADVANCED SQL SERVER FOR ADMINS AND ANALYSTS.
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
Dealing with Database Corruption DBA 911. Who am I? 2 David M Maxwell twitter.com/dmmaxwell or twitter.com/upsearchsqltwitter.com/dmmaxwelltwitter.com/upsearchsql.
WHEN DATABASE CORRUPTION STRIKES Presented by Steve Stedman Founder/Owner of Stedman Solution, LLC.
Ten 10 Things DBAs Want.NET Developers to Know Kevin Kline Technical Strategy Manager, Quest
SQLSTARTER - INTRO TO DATABASE DEVELOPMENT Kevin Kline Technical Evangelist, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI, KEKline Blog:
You Inherited a Database Now What?
Tips for SQL Server Performance and Resiliency
Curacao SQL Saturday June 11, 2016
Performance Management
SQL Server 2012 AlwaysOn and SQLSentry
Lead SQL BankofAmerica Blog: SQLHarry.com
Database Corruption Advanced Recovery Techniques|
Disaster Recovery and SQL for new and non-DBAs
Designing Database Solutions for SQL Server
Building Effective Backups
Summit Nashville /28/2018 8:42 PM
Tips for SQL Server Performance and Resiliency
Making PowerShell Useful
Re-Indexing - The quest of ultimate automation
Migrating your SQL Server Instance
Peter Shore SQL Saturday Cleveland 2016
Turbo-Charged Transaction Logs
TEMPDB – INTERNALS AND USAGE
Backup to Basics Tom Fox
Making PowerShell Useful
SQL Server Performance Tuning
Workshop.
Disaster Recovery is everyone’s job!
It’s TEMPDB Why Should You Care?
Transaction Log Internals and Performance David M Maxwell
You Inherited a Database Now What?
Top 10 DBA Mistakes on SQL Server
Presentation transcript:

Kevin Kline Director of Engineering Services, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI: KEKline Blog:

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

Tuning blog: Normally $10. Get them free at

Book a one-on-one demonstration at FRE E!

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

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!

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 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? For more tech info: -SQLPASS.org -SQLPerformance.com For more tech info: -SQLPASS.org -SQLPerformance.com

…for help: Forums vs Support: know the value #sqlhelp and Twitter

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: o SQL Server Troubleshooting Guide by J. Kehayias on: o server-a-guide-for-the-accidental-dba/ server-a-guide-for-the-accidental-dba/

DEMO

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

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 at o ttacks ttacks

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 Automation made easy with PowerShell and/or WMI: -PowerGUI -Scriptomatic

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.

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

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 followed by restore checks o Defragmentation, Fill factor, Pad Index o Index and Statistic maintenance o Full app recovery (logins in Master, jobs in MSDB, repl, etc) Don’t rely on the Database Maintenance Wizard!

Most preventative maintenance tasks have already been written and vetted by others. Check out: o o o

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, DLLs, etc for recovery? o Got all of the databases that are needed? o Haven’t tested a full, ground-up restore: 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? It’s All About The Data, All The Time, Every Time It’s All About The Data, All The Time, Every Time

1. Only a few big DBA blunders are due to tech skills : Disks as space, not IO Disks as space, not IO No troubleshooting methodology No troubleshooting methodology Going with the defaults Going with the defaults 2. Most DBA blunders are due to process and business issues: Security as an afterthought Security as an afterthought Wrong features Wrong features Change management Change management Preventative maint & automation Preventative maint & automation Backups <> Recovery Backups <> Recovery Let’s connect! Facebook, LinkedIn, Twitter at KEKLINE. at More slides at e84 More videos at