Restore and Recovery Operations

Restore testing, restore performance, rollback, and recovery procedures.

25 associated posts24 primary posts

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

[Video] Demoing SQL Server 2019’s new Accelerated Database Recovery

Wouldn't it be nice if rollbacks just finished instantly? Wouldn't you love for startup times to be near-zero even when SQL Server crashed just as someone in the middle of a transaction? How much would you pay for all this? (Well, I'm a little afraid to ask that, since we don't know yet whether this is an Enterprise-only feature, but dang, I sure hope not.)

Read more about [Video] Demoing SQL Server 2019’s new Accelerated Database Recovery 9 comments — Join the discussion

[Video] Office Hours 2019/1/2 (With Transcriptions)

This week, Brent, Erik, Tara, and Richie discuss whether you need to premake a destination database in order to run sp_databaserestore, restoring production statistics on dev servers to simulate productions behavior, dealing with duplicate SPNs, tools for detecting all SQL Servers in a production environment, SQL performance monitoring, dealing with very large indexes, and Brent's recent cruise.

Read more about [Video] Office Hours 2019/1/2 (With Transcriptions) 1 comment — Join the discussion

[Video] Office Hours 2018/12/19 (With Transcriptions)

This week, Erik, Tara, and Richie discuss disaster recovery, Python vs C# for SQL Server, whether you should perform log backups on primary or secondary on AGs, why Postgres is so popular, using mount points for tempdb, attention events, database corruption, MERGE statements, restoring a table from a database, features they look forward to in SQL Server 2019, and how Santa is able to visit all those homes in one night...

Read more about [Video] Office Hours 2018/12/19 (With Transcriptions) Be the first to comment
Production DBA

How to Restore a SQL Server Database into Azure SQL DB Managed Instances Redux

Anything Brent Can Do
There's some things you can do with Managed Instances, and some ways you can look at data that you can't do elsewhere.

For instance, you have the ability to start an restore ASYNC -- that means if your session drops, the restore will continue headlessly in the background.

Read more about How to Restore a SQL Server Database into Azure SQL DB Managed Instances Redux 5 comments — Join the discussion
Production DBA

Builder Day: Doing a Point-in-Time Restore in Amazon RDS for SQL Server

Brent had an idea that we should set aside a day per month where we could build things in the cloud and blog about our experiences. I was tasked with Amazon RDS for SQL Server: create an instance, configure backups and test point-in-time restores. After grabbing some coffee, I logged into the AWS console. We…

Read more about Builder Day: Doing a Point-in-Time Restore in Amazon RDS for SQL Server 14 comments — Join the discussion
Production DBA

Builder Day: Doing a Point-in-Time Restore in Azure SQL DB

We're trying something new at the company: Builder Day. We define a slightly-out-of-the-norm task, and then the team splits up and tackles the task on different cloud platforms, writing it up as we go. These posts aren't going to make you an expert on the topic - they're just meant to let you skim through technologies you might not otherwise get the chance to play with. The cloud changes fast, so some of this is just about seeing what providers are up to these days.

Read more about Builder Day: Doing a Point-in-Time Restore in Azure SQL DB 14 comments — Join the discussion

The Easiest Way to Restore Transaction Logs to A Point In Time (Spoiler: Use AmazonRDS)

... is to use a SQL Server where a robot does it for you! Let's take a look at how you can do this in AmazonRDS's hosted SQL Server these days.  Normally, restoring transaction logs is super tedious. You've got to restore all the files in the right order, for every single database. Even if…

Read more about The Easiest Way to Restore Transaction Logs to A Point In Time (Spoiler: Use AmazonRDS) 28 comments — Join the discussion
Production DBA

How to Restore a Page in SQL Server Standard and Enterprise Edition

One of the many restore features in SQL Server is the ability to restore one or more pages of data. This can be very convenient in some narrow situations - for example, corruption occurs on one page or an oops update is made to one record. The page restore process is not straightforward, however, and,…

Read more about How to Restore a Page in SQL Server Standard and Enterprise Edition 24 comments — Join the discussion