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
Gouache painting of a vermilion cart carrying three small stacked wooden tables

Drop Multiple Tables with One DROP TABLE Statement

October 23, 2018
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Table Operation

To drop multiple tables in SQL Server, list them in one DROP TABLE statement, referencing tables first. This post tests the order rule on a parent and child table and shows what happens after an error. It also covers IF EXISTS, drops by name pattern and temporary tables.

Read More
Gouache painting of a paper kite caught high in the branches of a bare tree by its tangled string, with one vermilion ribbon trailing from its tail

PREEMPTIVE_OS_DEVICEIOCONTROL: DBCC CHECKDB Will Not Stop

October 22, 2018
Pinal Dave
SQL Performance
SQL Error Messages, SQL Server, SQL Server DBCC, SQL Transactions, SQL Wait Stats

A DBCC CHECKDB session waiting on PREEMPTIVE_OS_DEVICEIOCONTROL did not end, even after a stop job and a kill. The wait is outside SQL Server’s control, so nothing inside SQL Server could clear it. Restarting SQL Server removed the session.

Read More
Books are neatly arranged while a separate record book remains unchanged

Do Index Reorganization Update Statistics? – Interview Question of the Week #196

October 21, 2018
Pinal Dave
SQL Interview Questions and Answers
Maintenance Plan, SQL Index, SQL Performance, SQL Scripts, SQL Server, SQL Statistics

Question: Do Index Reorganization Update Statistics?

Answer: No. Index Reorganization does not update Statistics of your database.

Read More
Gouache painting of two water pumps with watering cans waiting, one spout clamped in vermilion

Full-Text Index Blocking Redo on an Always On Secondary

October 20, 2018
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL DMV, SQL High Availability, SQL Lock, SQL Scripts

A full-text index can block the redo thread of a readable Always On secondary. This post shows the three clues to read in sys.dm_exec_requests, how to find the internal table and how to check change tracking. It ends with the fix: manual tracking and a scheduled population.

Read More
Gouache painting of an old brass spyglass beside new binoculars in vermilion on a stone ledge

DBCC PAGE Alternative: Read Page Headers with T-SQL

October 19, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server 2019, SQL Server Architecture, SQL Server DBCC

The best DBCC PAGE alternative is the function sys.dm_db_page_info. This post builds a demo table, lists all of its pages with the allocation view, and compares one page with DBCC PAGE. It also explains the two modes and the page wait use.

Read More
Gouache painting of a worker checking a blocked bridge between two database towers

Always On Listener Creation Fails: Attempt to Locate a Writable Domain Controller Failed

October 18, 2018
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Domain Controller, SQL Error Messages, SQL Server Cluster

Always On listener creation can fail because the cluster cannot finish its directory work. In a 2018 client case, the same failure hit three clusters. This post shows how to read the cluster event, check DNS and directory permissions, prestage the listener object and verify the result.

Read More
Gouache painting of queued documents approaching a tower beside an overflowing storage room

Always On Redo Queue Grows: Version Store Is Full on the Secondary Replica

October 17, 2018
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Error Messages, SQL TempDB

An Always On redo queue that keeps growing means a secondary has log records waiting to be applied. In one client case the cause was a full version store in tempdb. The tests here show how a long read builds the version store on SQL Server 2025 and which queries find it.

Read More
Previous 1 … 198 199 200 201 202 203 204 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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