This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
A small potted plant is connected to a larger source plant

What is Source_Database_ID in Sys.Databases?- Interview Question of the Week #232

July 7, 2019
Pinal Dave
SQL Interview Questions and Answers
Snapshot, SQL High Availability, SQL Scripts, SQL Server, SQL System Table

Question: What is Source_Database_ID in Sys.Databases and why it is mostly NULL? Very interesting question, I received indeed.

Read More
Gouache painting of three seedling pots on a greenhouse bench, one quietly covered by a glass cloche with a vermilion rim

MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT: How to Check It Is On

June 6, 2019
Pinal Dave
SQL Tips and Tricks
In-Memory OLTP, Snapshot, SQL Memory, SQL Scripts, Transaction Isolation

MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT is a database option, so DBCC USEROPTIONS never shows it. This post reads the option from sys.databases and from DATABASEPROPERTYEX, turns it on in a demo database and finds every database that has it. It also shows a guarded script you can reuse in deployments.

Read More
A hand rolls up a blue yoga mat; clay shapes sit on the rolled part while the flat section stays clean

Reverting a Failed Deployment With a Database Snapshot

June 17, 2017
Pinal Dave
SQL Tips and Tricks
Shrinking Database, Snapshot, Spatial Database, System Database

A snapshot can undo a bad release in minutes. See what comes back, what is lost for good, and why your log backups need a fresh start.

Read More
Two crossing wooden carriages mutually engage each other's stops through a closed interlock.

SQL SERVER – How Do We Find Deadlocks? – Notes from the Field #086

June 25, 2015
Pinal Dave
SQL Tips and Tricks
Notes from the Field, Snapshot, SQL Backup and Restore, SQL Server

To Find Deadlocks, I collect the graph of competing sessions and resources. The cycle distinguishes a deadlock from ordinary blocking.

Read More
SQL SERVER - Database Snapshots and Replica Causing Write Delays

SQL SERVER – Database Snapshots and Replica Causing Write Delays

June 19, 2015
Pinal Dave
SQL Tips and Tricks
Snapshot, SQL Backup and Restore

Do database snapshots slow down writes? With copy on write, each snapshot adds work to every page change. Here is how they can cause write delays.

Read More
SQL Server 2012 Error Dialog.

SQL SERVER – Recovering from Snapshots – Notes from the Field #078

April 30, 2015
Pinal Dave
SQL Tips and Tricks
Notes from the Field, Snapshot, SQL Backup and Restore, SQL Scripts

Data deleted by accident? John Sterrett explains recovering from snapshots, a very useful but less used feature, without panic making things worse.

Read More
A tray of sand raked into even lines, a small rake on one corner and a few finger marks disturbing the pattern.

Resetting a Test Database With Database Snapshots

February 12, 2012
Pinal Dave
SQL Tips and Tricks
Snapshot, SQL Backup and Restore, SQL Server, Testing

Resetting a test database with SQL Server snapshots gives a fast baseline for repeatable tests; create, revert, and manage sparse files safely.

Read More
1 2 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com