SlideShare a Scribd company logo
SQL Server Tips From The Field
Three Things IT Leaders Need to Know…
Web: www.sqlwatchmen.com
Email: Jim.Murphy@sqlwatchmen.com
Twitter: @SQLMurph
Jim Murphy
CEO
SQLWatchmen, LLC.
1. Database Performance and Speed Matter
2
[ ]
1. Database Performance and Speed Matter
3
2. Backups and Disaster Recovery
Plans are not all created equal[ ]
[ ]
1. Database Performance and Speed Matter
4
2. Backups and Disaster Recovery
Plans are not all created equal[
3. High Availability / Disaster Recovery (HA/DR) is a
set of tools used for Proactive Disaster Protection
]
[ ]
[ ]
Who is SQLWatchmen?
● DBA Services – tuning, disaster recovery
planning, maintenance
● SQL Programming - views, SPs, triggers
● Integration Services - SSIS for trying
systems together
● Reporting - SSRS for custom analytics to
fill business needs
5
● Local to Austin
● Can serve as Remote / Fractional DBAs
● SQL Server Specialists (We work alongside
general tech consulting firms)
● Compliance (HIPPA, SOX, SOC2)
How can we assist you?
Database Performance and Speed Matter
66
7
1. Identifying the problem & why you should
care
Problem:
• The database is the foundation of the entire
application or corporate stack. If the database is
slow…
8
1. Identifying the problem & why you should
care
Problem:
• The database is the foundation of the entire
application or corporate stack. If the database is
slow…
9
1. Identifying the problem & why you should
care
Problem:
• The database is the foundation of the entire
application or corporate stack. If the database is
slow…
• … Customers frustrated. Hurts reputation
• … Employees frustrated. Hourglasses waste time
10
2. There are many reasons for databases to
get slower over time (i.e. bottlenecks)
Cause:
• Bottleneck is usually:
• CPU
• Memory
• Disk IO
• Network
11
3. Slow-downs happen when queries
are inefficient
●More users
●More data volume
●More complex queries
12
4. Which solution is faster & cheaper?
Solution:
A. Upgrade hardware and migrate.
B. Figure out which queries are the biggest resource
hogs and make adjustments.
That doesn’t sound
cheap!
So offending queries use
far fewer resources.
13
5. Performance Tuning gets to the root
cause of slowdowns
●Benefit = Lower Cost
●Benefit = Tuning is more effective at improving
speed & performance
14
● SQL Server processes query; makes Execution Plan
● Execution Plan cached; remembered next time
● Ad hoc (one-time, on-demand) queries can fill up the cache with lots of these (inefficient)
● Stored Procedures reuse pre-cached Execution Plans (more efficient)
6. Understanding how Queries are processed
15
Demo
Measuring results with Perfmon:
MSSQL:SQL Statistics -> Batch Requests/sec
Backups and Disaster
Recovery Plans are not
all created equal
16
17
1. Identifying the problem & why you should
care
●What’s the difference between a backup and a
disaster recovery plan?
●Backup Plan = Backups work
●Disaster Recovery Plan = Data recovered
18
2. There are lots of different technologies you
might consider using:
●VM Snapshots
●SAN Replication
●Volume Shadow Copy
●VEEAM
●SQL Dump Files – Microsoft recommended
19
3. Transaction Log explained
• Diary of data changes
• Diary won’t ‘clear’ (Truncate) and be reused until it is
backed up (if database in FULL mode)
• T-Log (.LDF file) will grow and grow until drive fills up
• DANGER! Full drive = corrupt database (and also bring it
offline)!
20
4. Transaction Log explained (continued)
• FULL backup hurts performance
• Saves off all data pages with valid data on it
• Locks tables and indexes to access up-to-date data
• T-Log backup DOES NOT hurt performance
• T-Log is circular in usage. Segments (VLF)
• T-Log backup backs up each VLF & “truncates” T-Log
• Doesn’t lock tables
21
5. There are also 2 different recovery modes
to consider:
SIMPLE
• Only non-production
• Uses Transaction Log for current
transactions only.
• T-Log only grows if a long
transaction with lots of data
changes runs.
• No point-in-time recovery (can
only recover to most recent FULL
or Differential backup).
FULL
• Use for all Production databases.
• Keeps T-Log as diary for all data
changes until T-Log is backed up (and
also ‘replicated’ if an HA/DR
technology is configured).
• T-Log will grow until drive is filled if
not backed up.
• Can perform point-in-time recovery
(restore to an exact millisecond
before a disaster so no data is lost).
22
6. An example of Point in Time Recovery
Image Source: https://sqlbak.com/blog/sql-server-backup-and-restore/
23
PRO TIP
If T-Log backup is getting too big,
and you can’t backup or shrink
- Switch your Recovery Mode to Simple*[ ]
24
Demo
High Availability / Disaster Recovery (HA/DR)
is a set of procedures and methods used
for proactive disaster protection
25
26
1. Identifying the problem & why you should
care
Reasons why you might want to consider HA/DR
for your company
●What does High Availability mean?
●What is Disaster Recovery in this context?
●What is AlwaysOn?
●What are Availability Groups?
27
2. Solutions involve removing the single
point of failure
●Clustering - redundant hardware
●RAID - redundant individual disks
●“Replication” - redundant databases
○ What are the limitations?
28
3. Problems that arise with “Replication”
methods
Transactional
Replication
MirroringLog Shipping
• No automatic failover.
• Secondary DB is not
really Online*.
• Single DB solution.
• Secondary offline
while restoring T-Logs.
• Secondary database is
not Online.
• Single Mirror/ Secondary
only.
• SNAC/Failover Partner
in connection string.
What will AlwaysOn Solve?
• No automatic failover.
• Major headache.
o Higher
administration.
o Republish articles,
etc.
o Complicated
troubleshooting
29
4. AlwaysOn Solves World Hunger!
…and peace on earth and goodwill toward men.
● Automatic Failover
● Multiple Replicas (secondaries) – and readable!
● “Replication” - redundant databases
○ Offload Backups, Reporting, etc.
● Availability Groups - assists with using multiple DBs
● Lower administrative costs
● Plus more!
30
5. There are a few requirements to consider
●Enterprise Edition
●AD for WSFC
●Nodes must be in the same domain
31
6. HA, DR, or Both?
● Synchronous
● Asynchronous
Sync Async
Legend
32
7. Listener (Virtual
Network Name)
Node 1 Node 2
DENALI02 DENALI03
VNN
Node 1 Node 2
33
Demo
What’s New in SQL Server 2016?
35
What’s new in 2016?
• Columnstore indexes for big data
○ 30x in-memory OLTP speed
○ 100x in-memory Columnstore speed
• Query Store – better diagnostics for a DBA
• Stretch databases (Auto-archiving)
• Always Encrypted (at rest, in motion, cloud)
• Temporal DB – track historical changes
• Row-level security.
• …and a lot more.
SQL Server is beautiful…
but it can be a beast[ ]
36
You don’t need new hardware
- Tune for Performance[ ]
37
Keep your backups secure.
Disaster recovery methods
should be tested!
[ ]
38
Next Steps
● For another slide deck that delves deeper on SQL backups -
visit http://www.sqlwatchmen.com/contact-us
● To check out if a Database Diagnostic Exam is right for you -
visit http://www.sqlwatchmen.com/services/database-
diagnostic-analysis
39
Treated properly, MS SQL Server can
contribute a solid foundation to the
efforts of your business ][
40
Let us help you,
Protect Your Data ][
41
SQL Server Tips From The Field
Three Things IT Leaders Need to Know…
Web: www.sqlwatchmen.com
Email: Jim.Murphy@sqlwatchmen.com
Twitter: @SQLMurph
Jim Murphy
CEO
SQLWatchmen, LLC.
http://www.sqlwatchmen.com/services/database-diagnostic-analysis

More Related Content

What's hot (20)

PDF
Best Practices For Optimizing DB2 Performance Final
Datavail
 
ODP
Gluster Data Tiering
Joseph Elwin Fernandes
 
DOC
Sasi-AIX 3+ Resume
Peyyala Sasidhar Reddy
 
PDF
Performance Analysis and Troubleshooting Methodologies for Databases
ScyllaDB
 
PDF
High Availability Options for DB2 Data Centre
terraborealis
 
PDF
Using Release(deallocate) and Painful Lessons to be learned on DB2 locking
John Campbell
 
PDF
Munich 2016 - Z011597 Martin Packer - How To Be A Better Performance Specialist
Martin Packer
 
PDF
Db2 recovery IDUG EMEA 2013
Dale McInnis
 
PPTX
ClustrixDB: how distributed databases scale out
MariaDB plc
 
PDF
DbB 10 Webcast #3 The Secrets Of Scalability
Laura Hood
 
PDF
Realtime Indexing for Fast Queries on Massive Semi-Structured Data
ScyllaDB
 
PPTX
Maximizing performance via tuning and optimization
MariaDB plc
 
PPT
Building High Performance MySql Query Systems And Analytic Applications
guest40cda0b
 
PDF
Maximum Availability Architecture with Fusion Middleware 12c and Oracle Datab...
Nikitas Xenakis
 
ODP
DB2 Through My Eyes
Martin Packer
 
PDF
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
John Campbell
 
PDF
The architecture of SkySQL
MariaDB plc
 
PDF
DB2 for z/OS Real Storage Monitoring, Control and Planning
John Campbell
 
PDF
I Know What You Did THIS Summer
Martin Packer
 
PDF
IDUG NA 2014 / 11 tips for DB2 11 for z/OS
Cuneyt Goksu
 
Best Practices For Optimizing DB2 Performance Final
Datavail
 
Gluster Data Tiering
Joseph Elwin Fernandes
 
Sasi-AIX 3+ Resume
Peyyala Sasidhar Reddy
 
Performance Analysis and Troubleshooting Methodologies for Databases
ScyllaDB
 
High Availability Options for DB2 Data Centre
terraborealis
 
Using Release(deallocate) and Painful Lessons to be learned on DB2 locking
John Campbell
 
Munich 2016 - Z011597 Martin Packer - How To Be A Better Performance Specialist
Martin Packer
 
Db2 recovery IDUG EMEA 2013
Dale McInnis
 
ClustrixDB: how distributed databases scale out
MariaDB plc
 
DbB 10 Webcast #3 The Secrets Of Scalability
Laura Hood
 
Realtime Indexing for Fast Queries on Massive Semi-Structured Data
ScyllaDB
 
Maximizing performance via tuning and optimization
MariaDB plc
 
Building High Performance MySql Query Systems And Analytic Applications
guest40cda0b
 
Maximum Availability Architecture with Fusion Middleware 12c and Oracle Datab...
Nikitas Xenakis
 
DB2 Through My Eyes
Martin Packer
 
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
John Campbell
 
The architecture of SkySQL
MariaDB plc
 
DB2 for z/OS Real Storage Monitoring, Control and Planning
John Campbell
 
I Know What You Did THIS Summer
Martin Packer
 
IDUG NA 2014 / 11 tips for DB2 11 for z/OS
Cuneyt Goksu
 

Similar to Sql server tips from the field (20)

PPTX
Sql Server tips from the field
InnoTech
 
PPTX
SQL Server High Availability and DR - Too Many Choices!
Mike Walsh
 
PPTX
Microsoft sql server database administration
Rahul Singh
 
PPT
Managing SQLserver
Concentrated Technology
 
PPTX
Operational foundation for the sql server dba
PeterShore4
 
PPT
Supporting SQLserver
Concentrated Technology
 
PPTX
SQL Server High Availability and Disaster Recovery
Michael Poremba
 
PPTX
Sql disaster recovery
Sqlperfomance
 
PPT
Performance Tuning And Optimization Microsoft SQL Database
Tung Nguyen Thanh
 
PPTX
Managing SQLserver for the reluctant DBA
Concentrated Technology
 
PPTX
Sql server troubleshooting
Nathan Winters
 
PPT
Sql Server Performance Tuning
Bala Subra
 
PPTX
Mike walsh hadr_toomanychoices_20191107
Mike Walsh
 
PPTX
Introduction to High Availability with SQL Server
John Sterrett
 
PPT
Ms sql server architecture
Ajeet Singh
 
PDF
Dba tuning
Maximiliano Accotto
 
PPTX
Building a Fast, Reliable SQL Server for kCura Relativity
Brent Ozar
 
PDF
Microsoft Sql Server 2008 High Availability Goswami Hemantgiri S Haines
memicdavron
 
PPTX
SQLBits 2008 - SQL Server High Availability and Disaster Recovery Overview - ...
Charley Hanania
 
PPTX
Dba101
Pratik joshi
 
Sql Server tips from the field
InnoTech
 
SQL Server High Availability and DR - Too Many Choices!
Mike Walsh
 
Microsoft sql server database administration
Rahul Singh
 
Managing SQLserver
Concentrated Technology
 
Operational foundation for the sql server dba
PeterShore4
 
Supporting SQLserver
Concentrated Technology
 
SQL Server High Availability and Disaster Recovery
Michael Poremba
 
Sql disaster recovery
Sqlperfomance
 
Performance Tuning And Optimization Microsoft SQL Database
Tung Nguyen Thanh
 
Managing SQLserver for the reluctant DBA
Concentrated Technology
 
Sql server troubleshooting
Nathan Winters
 
Sql Server Performance Tuning
Bala Subra
 
Mike walsh hadr_toomanychoices_20191107
Mike Walsh
 
Introduction to High Availability with SQL Server
John Sterrett
 
Ms sql server architecture
Ajeet Singh
 
Building a Fast, Reliable SQL Server for kCura Relativity
Brent Ozar
 
Microsoft Sql Server 2008 High Availability Goswami Hemantgiri S Haines
memicdavron
 
SQLBits 2008 - SQL Server High Availability and Disaster Recovery Overview - ...
Charley Hanania
 
Dba101
Pratik joshi
 
Ad

More from JoAnna Cheshire (20)

PDF
The Future of Work
JoAnna Cheshire
 
PDF
Catching the Next Train
JoAnna Cheshire
 
PPTX
The SharePoint Migration Playbook
JoAnna Cheshire
 
PDF
Introduction to SharePoint Framework
JoAnna Cheshire
 
PPTX
PowerShell + SharePoint Online - An Admin's Guide
JoAnna Cheshire
 
PDF
Artificial Intelligence & Machine Learning - A CIOs Perspective
JoAnna Cheshire
 
PDF
Modernizing Data Management
JoAnna Cheshire
 
PPTX
Microsoft and Enterprise Search
JoAnna Cheshire
 
PPTX
Introduction to Microsoft Teams and Office 365 groups
JoAnna Cheshire
 
PDF
Cybersecurity crisis management a prep guide
JoAnna Cheshire
 
PPTX
Accelerate your business with flow
JoAnna Cheshire
 
PPTX
Building applications for your business using power apps and flow
JoAnna Cheshire
 
PPTX
The Decomposition Dilemma
JoAnna Cheshire
 
PPTX
Not "If" but "When"
JoAnna Cheshire
 
PDF
Defending against Ransomware and what you can do about it
JoAnna Cheshire
 
PDF
The New Convergence of Data; the Next Strategic Business Advantage
JoAnna Cheshire
 
PDF
Healthcare - An Identity Thief's SuperStore
JoAnna Cheshire
 
PDF
Microservices Architectural Maturity Matrix, Token Based Authority, API Gatew...
JoAnna Cheshire
 
PPT
Define Yourself! Crafting a Wonder Woman's Brand
JoAnna Cheshire
 
PDF
Today's Cyber Challenges: Methodology to Secure Your Business
JoAnna Cheshire
 
The Future of Work
JoAnna Cheshire
 
Catching the Next Train
JoAnna Cheshire
 
The SharePoint Migration Playbook
JoAnna Cheshire
 
Introduction to SharePoint Framework
JoAnna Cheshire
 
PowerShell + SharePoint Online - An Admin's Guide
JoAnna Cheshire
 
Artificial Intelligence & Machine Learning - A CIOs Perspective
JoAnna Cheshire
 
Modernizing Data Management
JoAnna Cheshire
 
Microsoft and Enterprise Search
JoAnna Cheshire
 
Introduction to Microsoft Teams and Office 365 groups
JoAnna Cheshire
 
Cybersecurity crisis management a prep guide
JoAnna Cheshire
 
Accelerate your business with flow
JoAnna Cheshire
 
Building applications for your business using power apps and flow
JoAnna Cheshire
 
The Decomposition Dilemma
JoAnna Cheshire
 
Not "If" but "When"
JoAnna Cheshire
 
Defending against Ransomware and what you can do about it
JoAnna Cheshire
 
The New Convergence of Data; the Next Strategic Business Advantage
JoAnna Cheshire
 
Healthcare - An Identity Thief's SuperStore
JoAnna Cheshire
 
Microservices Architectural Maturity Matrix, Token Based Authority, API Gatew...
JoAnna Cheshire
 
Define Yourself! Crafting a Wonder Woman's Brand
JoAnna Cheshire
 
Today's Cyber Challenges: Methodology to Secure Your Business
JoAnna Cheshire
 
Ad

Recently uploaded (20)

PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Python basic programing language for automation
DanialHabibi2
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
July Patch Tuesday
Ivanti
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 

Sql server tips from the field

  • 1. SQL Server Tips From The Field Three Things IT Leaders Need to Know… Web: www.sqlwatchmen.com Email: [email protected] Twitter: @SQLMurph Jim Murphy CEO SQLWatchmen, LLC.
  • 2. 1. Database Performance and Speed Matter 2 [ ]
  • 3. 1. Database Performance and Speed Matter 3 2. Backups and Disaster Recovery Plans are not all created equal[ ] [ ]
  • 4. 1. Database Performance and Speed Matter 4 2. Backups and Disaster Recovery Plans are not all created equal[ 3. High Availability / Disaster Recovery (HA/DR) is a set of tools used for Proactive Disaster Protection ] [ ] [ ]
  • 5. Who is SQLWatchmen? ● DBA Services – tuning, disaster recovery planning, maintenance ● SQL Programming - views, SPs, triggers ● Integration Services - SSIS for trying systems together ● Reporting - SSRS for custom analytics to fill business needs 5 ● Local to Austin ● Can serve as Remote / Fractional DBAs ● SQL Server Specialists (We work alongside general tech consulting firms) ● Compliance (HIPPA, SOX, SOC2) How can we assist you?
  • 6. Database Performance and Speed Matter 66
  • 7. 7 1. Identifying the problem & why you should care Problem: • The database is the foundation of the entire application or corporate stack. If the database is slow…
  • 8. 8 1. Identifying the problem & why you should care Problem: • The database is the foundation of the entire application or corporate stack. If the database is slow…
  • 9. 9 1. Identifying the problem & why you should care Problem: • The database is the foundation of the entire application or corporate stack. If the database is slow… • … Customers frustrated. Hurts reputation • … Employees frustrated. Hourglasses waste time
  • 10. 10 2. There are many reasons for databases to get slower over time (i.e. bottlenecks) Cause: • Bottleneck is usually: • CPU • Memory • Disk IO • Network
  • 11. 11 3. Slow-downs happen when queries are inefficient ●More users ●More data volume ●More complex queries
  • 12. 12 4. Which solution is faster & cheaper? Solution: A. Upgrade hardware and migrate. B. Figure out which queries are the biggest resource hogs and make adjustments. That doesn’t sound cheap! So offending queries use far fewer resources.
  • 13. 13 5. Performance Tuning gets to the root cause of slowdowns ●Benefit = Lower Cost ●Benefit = Tuning is more effective at improving speed & performance
  • 14. 14 ● SQL Server processes query; makes Execution Plan ● Execution Plan cached; remembered next time ● Ad hoc (one-time, on-demand) queries can fill up the cache with lots of these (inefficient) ● Stored Procedures reuse pre-cached Execution Plans (more efficient) 6. Understanding how Queries are processed
  • 15. 15 Demo Measuring results with Perfmon: MSSQL:SQL Statistics -> Batch Requests/sec
  • 16. Backups and Disaster Recovery Plans are not all created equal 16
  • 17. 17 1. Identifying the problem & why you should care ●What’s the difference between a backup and a disaster recovery plan? ●Backup Plan = Backups work ●Disaster Recovery Plan = Data recovered
  • 18. 18 2. There are lots of different technologies you might consider using: ●VM Snapshots ●SAN Replication ●Volume Shadow Copy ●VEEAM ●SQL Dump Files – Microsoft recommended
  • 19. 19 3. Transaction Log explained • Diary of data changes • Diary won’t ‘clear’ (Truncate) and be reused until it is backed up (if database in FULL mode) • T-Log (.LDF file) will grow and grow until drive fills up • DANGER! Full drive = corrupt database (and also bring it offline)!
  • 20. 20 4. Transaction Log explained (continued) • FULL backup hurts performance • Saves off all data pages with valid data on it • Locks tables and indexes to access up-to-date data • T-Log backup DOES NOT hurt performance • T-Log is circular in usage. Segments (VLF) • T-Log backup backs up each VLF & “truncates” T-Log • Doesn’t lock tables
  • 21. 21 5. There are also 2 different recovery modes to consider: SIMPLE • Only non-production • Uses Transaction Log for current transactions only. • T-Log only grows if a long transaction with lots of data changes runs. • No point-in-time recovery (can only recover to most recent FULL or Differential backup). FULL • Use for all Production databases. • Keeps T-Log as diary for all data changes until T-Log is backed up (and also ‘replicated’ if an HA/DR technology is configured). • T-Log will grow until drive is filled if not backed up. • Can perform point-in-time recovery (restore to an exact millisecond before a disaster so no data is lost).
  • 22. 22 6. An example of Point in Time Recovery Image Source: https://sqlbak.com/blog/sql-server-backup-and-restore/
  • 23. 23 PRO TIP If T-Log backup is getting too big, and you can’t backup or shrink - Switch your Recovery Mode to Simple*[ ]
  • 25. High Availability / Disaster Recovery (HA/DR) is a set of procedures and methods used for proactive disaster protection 25
  • 26. 26 1. Identifying the problem & why you should care Reasons why you might want to consider HA/DR for your company ●What does High Availability mean? ●What is Disaster Recovery in this context? ●What is AlwaysOn? ●What are Availability Groups?
  • 27. 27 2. Solutions involve removing the single point of failure ●Clustering - redundant hardware ●RAID - redundant individual disks ●“Replication” - redundant databases ○ What are the limitations?
  • 28. 28 3. Problems that arise with “Replication” methods Transactional Replication MirroringLog Shipping • No automatic failover. • Secondary DB is not really Online*. • Single DB solution. • Secondary offline while restoring T-Logs. • Secondary database is not Online. • Single Mirror/ Secondary only. • SNAC/Failover Partner in connection string. What will AlwaysOn Solve? • No automatic failover. • Major headache. o Higher administration. o Republish articles, etc. o Complicated troubleshooting
  • 29. 29 4. AlwaysOn Solves World Hunger! …and peace on earth and goodwill toward men. ● Automatic Failover ● Multiple Replicas (secondaries) – and readable! ● “Replication” - redundant databases ○ Offload Backups, Reporting, etc. ● Availability Groups - assists with using multiple DBs ● Lower administrative costs ● Plus more!
  • 30. 30 5. There are a few requirements to consider ●Enterprise Edition ●AD for WSFC ●Nodes must be in the same domain
  • 31. 31 6. HA, DR, or Both? ● Synchronous ● Asynchronous Sync Async Legend
  • 32. 32 7. Listener (Virtual Network Name) Node 1 Node 2 DENALI02 DENALI03 VNN Node 1 Node 2
  • 34. What’s New in SQL Server 2016?
  • 35. 35 What’s new in 2016? • Columnstore indexes for big data ○ 30x in-memory OLTP speed ○ 100x in-memory Columnstore speed • Query Store – better diagnostics for a DBA • Stretch databases (Auto-archiving) • Always Encrypted (at rest, in motion, cloud) • Temporal DB – track historical changes • Row-level security. • …and a lot more.
  • 36. SQL Server is beautiful… but it can be a beast[ ] 36
  • 37. You don’t need new hardware - Tune for Performance[ ] 37
  • 38. Keep your backups secure. Disaster recovery methods should be tested! [ ] 38
  • 39. Next Steps ● For another slide deck that delves deeper on SQL backups - visit http://www.sqlwatchmen.com/contact-us ● To check out if a Database Diagnostic Exam is right for you - visit http://www.sqlwatchmen.com/services/database- diagnostic-analysis 39
  • 40. Treated properly, MS SQL Server can contribute a solid foundation to the efforts of your business ][ 40
  • 41. Let us help you, Protect Your Data ][ 41
  • 42. SQL Server Tips From The Field Three Things IT Leaders Need to Know… Web: www.sqlwatchmen.com Email: [email protected] Twitter: @SQLMurph Jim Murphy CEO SQLWatchmen, LLC. http://www.sqlwatchmen.com/services/database-diagnostic-analysis