Launch week: the Season Pass & Fundamentals Week are 50% off — ends in 17d 09h 46mSee the sale

Category: Backup and Recovery

Production DBA

Maybe You Shouldn’t Even Be Using Clustering or AGs.

Sandra Delany (LinkedIn) wrote a well-thought-out blog post called, "Should a SQL Server DBA Know Windows Clustering?" She's got about 20 years of DBA experience, and she works for Straight Path (a firm I respect) as a consultant. You can probably guess based on her background that yes, she believes you should know how to set up, configure, and troubleshoot Windows clustering. It's a good post, and you should read it.

Read more about Maybe You Shouldn’t Even Be Using Clustering or AGs. 18 comments — Join the discussion
Production DBA

Today’s a Good Day to Talk to Your Manager About Disaster Recovery.

Last night, two major IT disasters struck:

Microsoft Azure's Central region went down for about 4 hours. The official post-mortem isn't out yet, but rumor has it that while decommissioning legacy storage services, the product group deleted the wrong thing.
Crowdstrike pushed a bad update, leading to blue screens of death on Windows systems worldwide, affecting banking, healthcare, airlines, and more.

Read more about Today’s a Good Day to Talk to Your Manager About Disaster Recovery. 10 comments — Join the discussion
Production DBA

Two Tweaks for Faster Backups with Ola Hallengren’s Scripts

Ola Hallengren's free maintenance solution is widely used as a replacement for SQL Server maintenance plans. It's a more powerful, flexible tool for backups, corruption checking, and index & statistics updates. If you're using it for backups, there are two quick, easy changes that can dramatically reduce your nightly job runtimes. First, set @NumberOfFiles =…

Read more about Two Tweaks for Faster Backups with Ola Hallengren’s Scripts 18 comments — Join the discussion
Production DBA

“Oops, I Lost My Indexes in Azure SQL DB.”

I got an interesting request for consulting, and I'm going to paraphrase it: We were using Azure SQL DB with automatic index tuning enabled for months. Things were going great, but... we just deployed a new version of our code. Our deployment tool made the database schema match our source control, which... dropped the indexes…

Read more about “Oops, I Lost My Indexes in Azure SQL DB.” 12 comments — Join the discussion
Production DBA

How to Configure Ola Hallengren’s Database Maintenance Scripts for Backups

Someone told you that you should be using Ola Hallengren's Maintenance Scripts. You've downloaded his Maintenance Solution.sql, you ran it in the master database, and ... now you're not sure what's supposed to happen next. In this post, we'll cover how to configure backups.
First, configure the Agent jobs.
When MaintenanceSolution.sql ran, it created a few Agent jobs. You can see them in SSMS or Azure Data Studio under SQL Server Agent, Jobs:

Read more about How to Configure Ola Hallengren’s Database Maintenance Scripts for Backups 23 comments — Join the discussion
Production DBA

Free Webcast: Help! My SQL Server Maintenance is Taking Too Long!

You manage growing SQL Server databases with shrinking nightly maintenance windows. You just don't have enough time left each night to do the necessary backups, corruption checking, index maintenance, and data jobs that your users and apps want to run. Cloud storage isn't helping the problem, either.

Stop playing Tetris with your job schedules and step back for a second: are we doing the right things, at the right times, with the right SQL Server configuration?

Read more about Free Webcast: Help! My SQL Server Maintenance is Taking Too Long! 4 comments — Join the discussion
Production DBA

SQL Server Suddenly Frozen? You Might Be Snapshotting Too Many Databases.

Snapshot backup tools like Azure Site Recovery and Veeam are great for sysadmins. They let you quickly replicate a virtual machine to somewhere else without knowing too much about the server's contents.

To pull it off, they use the Windows Volume Shadow Copy Service to do snapshot backups - often referred to as VSS snaps. In a nutshell:

Read more about SQL Server Suddenly Frozen? You Might Be Snapshotting Too Many Databases. 37 comments — Join the discussion

3 Ways to Run DBCC CHECKDB Faster

In my last post, I talked about how you can get 43%-67% faster backups. Today, I'm using that same SQL Server setup to discuss how throwing more CPU cores might help you check for corruption faster if you've already got modern fast storage. I don't expect everyone to go to this level of detail by any means, but it's the kind of tuning you can do when you're facing multiple terabytes of production data per server and shrinking maintenance windows.

Read more about 3 Ways to Run DBCC CHECKDB Faster 20 comments — Join the discussion
Production DBA

Back Up SQL Server 43%-67% Faster by Writing to Multiple Files.

Even if you're not writing to different physical drives, you can get faster backups with Microsoft SQL Server when you back up to multiple files. Your exact numbers are going to vary based on your server and your utter inability to rub two sticks together to make fire, but let's see how I do.

Here's the hardware I'm using:

Read more about Back Up SQL Server 43%-67% Faster by Writing to Multiple Files. 38 comments — Join the discussion

Can I Offload DBCC CHECKDB To Another Server?

You want to check for corruption, but you don't want to slow down your primary production server.

In this post, I'm specifically talking about offloading the corruption checking process. I'm not talking about doing corruption checking on both the primary and other servers - that's wonderful, and if you're doing that, you should hug yourself. You're doing a good job. Who's a good dog? You are! Good dog.

Read more about Can I Offload DBCC CHECKDB To Another Server? 29 comments — Join the discussion
Production DBA

The First Time I Had to Restore a Database

I remember it really clearly.

In the mid 1990s, long, long before I went into IT as a career, I was working at a photo studio in Muskegon, Michigan. They specialized in high school class photos, and they did a LOT of 'em. Every morning, the photographers would come into the office to collect printouts for the pictures they were going to shoot that day - student name, address, time of the photos, that kind of thing.

Read more about The First Time I Had to Restore a Database 51 comments — Join the discussion
Production DBA

#TSQL2sday: I Just Wish SQL Server Could Restore a Single Object from Backup.

For this month's T-SQL Tuesday, Kevin Chant asked us to dream up our fantasy SQL Server feature. I'm sure people are gonna ask for flying cars and gene splicing, and that's awesome. I'm excited to hear the kinds of things they dream up.

Me? I've got a really simple ask.

Read more about #TSQL2sday: I Just Wish SQL Server Could Restore a Single Object from Backup. 31 comments — Join the discussion
Production DBA

Research Paper Week: Constant Time Recovery in Azure SQL DB

Let's finish up Research Paper Week with something we're all going to need to read over the next year or two. I know, it says Azure SQL DB, but you boxed-product folks will be interested in this one too: Constant Time Recovery in Azure SQL DB by Panagiotis Antonopoulos, Peter Byrne, Wayne Chen, Cristian Diaconu, Raghavendra Thallam Kodandaramaih, Hanuma Kodavalla, Prashanth Purnananda, Adrian-Leonard Radu, Chaitanya Sreenivas Ravella, and Girish Mittur Venkataramanappa (2019).

Read more about Research Paper Week: Constant Time Recovery in Azure SQL DB 10 comments — Join the discussion
Production DBA

DBA Training Plan 3: Treat Your Servers Like Cattle, Not Like Pets

In our last post in this series, I talked about why you should be using Ola Hallengren's maintenance script for backups and sp_DatabaseRestore for faster restores. These two tools have implications for how you build, back up, recover, and fail over your SQL Server.

There's a saying in the cloud: treat your servers like cattle, not like pets.

Read more about DBA Training Plan 3: Treat Your Servers Like Cattle, Not Like Pets 12 comments — Join the discussion
Production DBA

DBA Training Plan 2: Backups (And More Importantly, Restores)

When I first started out as a SQL Server DBA, I thought things were going well as long as the backup jobs ran successfully. I'd go into SQL Server Agent every now and then, make sure they were still running, and ... that was the end of it. I figured if disaster ever struck, I'd just do a restore. How hard could it be? I was missing the entire point.

Read more about DBA Training Plan 2: Backups (And More Importantly, Restores) 6 comments — Join the discussion