SQL Friday #16: Eitan Blumin on “How to HADR Your SQL Jobs”

Online Microsoft Data Platform Lunch Sessions

SQL Friday #16: Eitan Blumin on “How to HADR Your SQL Jobs”

2020-07-31 Past SQL Friday Sessions 0
Date:2020-09-18
Time:12:00 CEST
How to attend:Already finished
Accompanying material:Download slides from here
If you can’t attend this one but want to attend future sessions, join the Meetup group and be the first to know when registration comes online: https://www.meetup.com/SQL-Friday

Eitan Blumin on “How to HADR Your SQL Jobs”

You have a couple or more SQL Servers with some sort of High Availability solution between them (AlwaysOn Availability Groups, Database Mirroring, etc.). You also have a bunch of scheduled jobs which you need to be run on the Primary server.

But wait…. How would you make these jobs run only on the Primary server? After all, if they try to run on the Secondary, they might fail (whether because the database is inaccessible or because it’s read-only). Additionally, you would need to consider a failover where the Primary and Secondary servers would switch roles.

This means that you would have to create these jobs on both servers, and then implement some sort of mechanism that would detect, for each job, whether the instance it’s being executed at is currently the Primary.

There are a few ways to go about doing this. During this session we will cover possible solutions, downfalls, tricks, and much more.

About Eitan

Eitan Blumin is a SQL Server Generalist consultant with decades of experience in all fields relating to Microsoft SQL Server databases (since the year 2005).

Eitan is currently working as a Senior SQL Server Consultant and Team Leader at Madeira Data Solutions. Other than his day-to-day consultant work, he also co-hosts the popular “SQL Server Radio” podcast with Guy Glantser, writes professional materials for the SQL Server community, delivers professional presentations and courses, and serves as a pivotal source of expert knowledge for the Madeira team.

Twitter: https://twitter.com/EitanBlumin
LinkedIn: https://www.linkedin.com/in/eitanblumin