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 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
SQL SERVER - Solution - A Quick Puzzle on JOIN and NULL - SQL Brain Teaser

SQL SERVER – Solution – A Quick Puzzle on JOIN and NULL – SQL Brain Teaser

February 11, 2012
Pinal Dave
SQL Puzzle
SQL Scripts

The solution to my quick puzzle on JOIN and NULL. Many readers said the puzzle had an error; it did not, and here is the answer that works.

Read More
SQL SERVER - A Quick Puzzle on JOIN and NULL - SQL Brain Teaser

SQL SERVER – A Quick Puzzle on JOIN and NULL – SQL Brain Teaser

February 10, 2012
Pinal Dave
SQL Puzzle
SQL Scripts, SQL Server

A relaxing SQL Brain Teaser on INNER JOIN and NULL: set up a sample table, look at the result, and fill in the missing T-SQL that produces it.

Read More
Gouache painting of records coming together at a join

SQL SERVER – INNER JOIN Returning More Records than Exists in Table

February 9, 2012
Pinal Dave
SQL Puzzle
SQL Joins, SQL Scripts

Can an INNER JOIN returning more records than exist in a table be right? Jeff thought it was a bug. Our chat shows why it is possible and natural.

Read More
Gouache painting of a database character beside a stopwatch

Convert Subquery to CTE: SQL in Sixty Seconds #001

February 8, 2012
Pinal Dave
SQL Video
CTE, SQL in Sixty Seconds, SQL Scripts, SQL Sub Query

You can convert subquery to CTE syntax by naming the inner query and using that name in the outer query. The first SQL in Sixty Seconds episode shows the change. My tests on SQL Server 2025 show the result stays the same, and that a CTE used twice reads the table twice.

Read More
SQL SERVER - Installation Log Summary File Location - 2012 - 2008 R2

SQL SERVER – Installation Log Summary File Location – 2012 – 2008 R2

February 7, 2012
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

A new DBA on his first day could not find the SQL Server installation log summary. Here is the file location for SQL Server 2012 and 2008 R2.

Read More
SQL SERVER - ERROR: FIX - Database diagram support objects cannot be installed

SQL SERVER – ERROR: FIX – Database diagram support objects cannot be installed

February 6, 2012
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server

Database diagram support objects cannot be installed because this database does not have a valid owner. Here is the quick fix I used on a friend’s database.

Read More
Previous 1 … 551 552 553 554 555 556 557 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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