Backup-Recovery

Category: backup-recovery

Should You Use SQL Server Readable Secondaries If Queries Can Fail Repeatedly at Any Time?

Should You Use SQL Server Readable Secondaries If Queries Can Fail Repeatedly at Any Time?

If you use readable secondaries in Availability Groups or Read-Scale out instances in Azure SQL Managed Instance, you may have queries fail repeatedly if there is a glitch and statistics are not successfully ‘refreshed’ on the secondary replica. Those queries may keep failing until you manually intervene.

It’s unclear if Microsoft will ever fix this. There is a well established support deflection article which documents the issue and provides ‘workarounds’.

Continue reading

Does Adding NOINDEX Change DBCC CHECKDB with PHYSICAL_ONLY?

Does Adding NOINDEX Change DBCC CHECKDB with PHYSICAL_ONLY?

By Kendra Little on August 16, 2016

Category: backup-recovery

The NOINDEX option does change the behavior of DBCC CHECKDB (even if you’re already usingย PHYSICAL_ONLY).ย Here’s how the two options compare to one another, and how to see the difference yourself in a simple example.

Continue reading

Corrupting Databases for Dummies- Hex Editor Edition

Corrupting Databases for Dummies- Hex Editor Edition

By Kendra Little on January 24, 2011

Category: backup-recovery

This Post Tells You How To Corrupt a SQL Server Database with a Hex Editor in Gruesome Detail

And that’s all this post tells you. Not how to fix anything, just how to break it.

Continue reading

Backups - Using SQL Agent Tokens to Set the Date, and Why to go MultiFile

Backups - Using SQL Agent Tokens to Set the Date, and Why to go MultiFile

My life is a bit easier since I learned how to use SQL agent tokens. They are particularly nice for setting date and timestamps on backup files. Unfortunately, they only work in the context of executing agent jobs.

Continue reading