Live registration reopens October 1, 2026, in 11d 19h 52mNotify me

Backup, Restore, and Database Integrity

Backup design, restore testing, integrity checks, and corruption response.

292 associated posts117 primary posts

Who’s testing your restores? No, really – who’s testing your restores?

I recently posed the question, “Who’s taking your backups?” This is of utmost importance, because your business’s data is the business. Protecting it and backing it up need to be priorities for DBAs.

Now, for my next question: who is responsible for restoring those backups?

Read more about Who’s testing your restores? No, really – who’s testing your restores? 5 comments — Join the discussion

Microsoft SQL Server 2012 Always On AGs at StackOverflow

I recently finished helping the StackExchange team migrate their SQL Server 2008 infrastructure to SQL Server 2012. These servers power StackOverflow, DBA.StackExchange.com, the new AskPatents partnership with the US Patent and Trademark Office, and hundreds of other Q&A sites that together form one of the biggest web site networks. It's one of the most visible…

Read more about Microsoft SQL Server 2012 Always On AGs at StackOverflow 25 comments — Join the discussion

Scary SQL Surprises: Crouching Tiger, Hidden Replication

The more SQL Servers I see, the more scared I get.  There are a staggering number of ways that your server can sneak around behind you and ... well, let's just say you shouldn't drop the soap in the datacenter.

As part of my health checks, I'm used to verifying that full backups are done regularly, but that's not enough.

Read more about Scary SQL Surprises: Crouching Tiger, Hidden Replication 22 comments — Join the discussion
Production DBA

SQL Server Tricks: How Can I Restore a Subset of My Tables to A Prior Point in Time?

This question came up when working with a client last week. The team mentioned they were planning to move some tables into a new filegroup. The new filegroup is intended to help quickly restore data in cases when a monthly process goes off the rails and leaves the data in some tables in a bad state.

Read more about SQL Server Tricks: How Can I Restore a Subset of My Tables to A Prior Point in Time? 7 comments — Join the discussion
Production DBA

Maintenance Plans and Roombas Suck – in a Good Way

Every now and then, I hear an experienced DBA say, "SQL Server maintenance plans for backups, indexes, and statistics?  What, are you kidding me?  Nobody uses maintenance plans because they suck."

They say maintenance plans are so inflexible because they insist on defragging or rebuilding every index, every time, regardless of how little the table has changed.  Or maybe they complain about problems with scheduling, or how they saw somebody use a DBCC SHRINKDB maintenance plan once.

Read more about Maintenance Plans and Roombas Suck – in a Good Way 30 comments — Join the discussion
Production DBA

Free Scripts to Test Your Backups on World Backup Day

March 31st is World Backup Day, and while most of the press will be focusing on backing up your priceless lolcat photos, it's still a good time to talk with management about your database backups.

Your boss will have some simple questions, and you can arm yourself with a few easy queries.
Are We Backing Up Every Database?

Read more about Free Scripts to Test Your Backups on World Backup Day 40 comments — Join the discussion

Where to Run DBCC on Always On Availability Groups

With SQL Server 2012's new AlwaysOn Availability Groups, we have the ability to run queries, backups, and even DBCCs on database replicas.  But should we? Paul Randal (Blog - @PaulRandal) covered this issue in today's SQLskills Insider newsletter, and he says: "It’s not checking the I/O subsystem of the log shipping primary database – only…

Read more about Where to Run DBCC on Always On Availability Groups 48 comments — Join the discussion

DBA Darwin Awards: Log File Edition

Right after the DBA says “Uh oh,” they call in the consultants.  We get to see some really amazing acts of career suicide.

You wouldn’t believe some of the stuff we’ve seen, and some of these things are probably happening in your environment right now.  In this session, we'll talk about some of the most common ways to shoot yourself in the foot, and we'll show you how to put the gun back in the holster.

Read more about DBA Darwin Awards: Log File Edition Be the first to comment
Production DBA

The 9 Letters That Get DBAs Fired

I'm proud to say that I've only lost one job in my life.  I was a grocery store bagger when the store came under pressure to increase their percentage of minority workers.  They laid off all of the Caucasian baggers, but I'm not bitter.  I actually loved bagging groceries, and if I hadn't been laid off, I'd still be the guy asking you "Paper or plastic?"

Read more about The 9 Letters That Get DBAs Fired 39 comments — Join the discussion

Ozar’s Hierarchy of Database Needs: a 6-Month DBA Training Plan

You need to poop. Maybe not right now, but in general, you need to breathe, eat, drink, sleep, and poop.  If you can't do any of those things, then the rest of your needs will take a back seat until you can accomplish the basics.

Psychology professor Abraham Maslow designed Maslow's Hierarchy of Needs to illustrate how us meatbags prioritize our daily tasks.  It's usually visualized with a pyramid:

Read more about Ozar’s Hierarchy of Database Needs: a 6-Month DBA Training Plan Be the first to comment
Production DBA

How to Make SQL Server Backups and Restores Faster

Every day, your servers do hundreds or thousands of operations that are all resource-intensive.  You want these operations to finish as quickly as possible, because they're absolutely mission critical, and you'll lose your job if they're not done successfully.  Whole companies have been lost when these operations fail.  Yet do you really know how to make these operations happen faster?

Read more about How to Make SQL Server Backups and Restores Faster 10 comments — Join the discussion
Production DBA

How to REALLY Compress Your SQL Server Backups

StackOverflow's database servers are hosted in a colo facility. They pay by the byte for transfer in and out of their servers, so it's really crucial to compress the database backups as much as possible. The smaller the backups, the less they pay. They're already using backup compression, but they wanted to explore more ways to cut their backup sizes.

Read more about How to REALLY Compress Your SQL Server Backups 45 comments — Join the discussion
Production DBA

Designing a Recovery Strategy for StackOverflow

When I design a backup & recovery strategy for a database, I don't talk to the developers, database administrators, or systems administrators first.  The first people I go to are the business managers, and I ask three questions:

How much money would you lose if you lost the data altogether?
How much money would you lose if you were down for X hours?
How much time & money can you afford to devote to backups?

Read more about Designing a Recovery Strategy for StackOverflow 11 comments — Join the discussion