Database Management Myths for Developers

johnsterrett 979 views 30 slides Jun 28, 2024
Slide 1
Slide 1 of 30
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30

About This Presentation

Myths, Mistakes, and Lessons learned about Managing SQL Server databases. We also focus on automating and validating your critical database management tasks.


Slide Content

Database Management Myths
for Developers
Kon Melamud& John Sterrett
CTO & CEO

About Kon and John @ ProcureSQL
2
[email protected]
procuresql.com
linkedin.com/in/konmelamud
[email protected]
@johnsterrett
johnsterrett.com
procuresql.com/blog
linkedin.com/in/johnsterrett

Speaker
Dinner
Gold
Sponsors
Titanium Sponsors
Friends of KCDC
Platinum Sponsors

Speaker Evaluations

Direct Access to
Data/Application
Architects and DBAs
•Senior Data Architects are demanding
salaries over 200k per year.
•We provide customized plans to fit your
needs
•Plans start at 4k/month
•Includes
•Architecture
•Training and Mentoring
•Projects
•Reporting
•Implementation
•Support

Today’s Agenda
Myths of Database Management
Common Mistakes and Lessons Learned
Automate and Validate Important Stuff…
** NOTE: We will focus on SQL Server Database Engine, but everything today
applies to relational database engines. ***

Common Mistakes and Lessons
Lessons
•Disaster planning…(?)
•Manned Disasters
•Unmanned/HW
disasters
•Natural Disasters
Mistakes (?)
•ASSUME…

Most Frequent Unplanned Disaster…

BACKUPS ARE
WORTHLESS IF YOU
CANNOT RESTORE
THEM

High Availability – Failover Clusters (?)
10
John’s First Cluster

Disaster Events – if you stay READY you
won't have to get ready…..

SLA’s Define Your Maintenance Plans
Recovery Time
Objective
Recovery Point
Objective
Photo Credit: Clock and Lost and Found

How do you do performance tuning (??)

Are you utilizing the Query Store?
DBA Basics: Getting Started with Performance Tuning - SQL Server Consulting &
Remote DBA Service (johnsterrett.com)

Myths of Database Management
(The good, the Bad and the Ugly)

ORMs (Entity Framework) are worst
performers…
True?
False?

Once you move to the Cloud you don’t
need a Data Engineer(DBA)….
True?
False?

Performance - we can always scale
up…
True?
False?

Database Indexing – only affect DML
operations
True?
False?

You have automatic backups, are we are
good to go?

Do We Need Maintenance Plans?
Photo Credit

Critical Care SQL Maintenance
•Backups
•Integrity Checks
•Index and Statistics
•Disk Usage
•Error Log Management
•Jobs and Processes
Photo Credit

The Gold Standard SQL Server for
Database Maintenance Tasks
dbatools docs | Install-DbaMaintenanceSolution

Why shouldn’t we use the built in
maintenance plans?

Testing for Restores and Corruption….
Test-DbaLastBackup -SqlInstance ProdSQL01 -Destination TestSQL01
Restores all or some of the latest backups and performs a DBCC CHECKDB.
Gathers information about the last full backups
Restores the backups to the Destination with a new name. If no Destination is specified, the originating SQL Server instance
will be used.
The database is restored as "dbatools-testrestore-$databaseName" by default, but you can change dbatools-testrestoreto
whatever you would like using -Prefix
The internal file names are also renamed to prevent conflicts with original database
A DBCC CHECKDB is then performed
And the test database is finally dropped
dbatools docs | Test-DbaLastBackup

Central Management Server
© ProCure SQL LLC ®

Evaluate your daily checklist against 100+ instances with PBM and CMS - SQL Server Consulting &
Remote DBA Service (johnsterrett.com)

Daily Health Check Scorecard

Do Not Reinvent the Wheel
•Dbatools.io – Powershell automation for SQL Server
•Ola Hallengren Maintenance Solution
•Built in Features like Query Store, Central Management Studio,
Policy-Based Management

Procure Your Data Service Provider!
Service Details – Packages start as low as 4k
per month
•US-Based Resources only.
•Primary Data Architect and access to our
team of Experts for anything data related.
•Ability to help with training, architecture,
projects, and reporting at the same rate