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
Diagram of SQL Server cluster setup setting the folder permission on the DATA folder under a volume mount point and failing with HResult 0x84cf0003, with the ruled out causes and the real cause, the Audit Object Access policy from a GPO

0x84cf0003: Cluster Install Fails Updating Permission Setting for Folder

December 27, 2018
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Error Messages, SQL Server, SQL Server Cluster, SQL Server Installation

A SQL Server cluster install failed with 0x84cf0003: Updating permission setting for folder failed. Service account rights and folder permissions were fine. The cause was the Audit Object Access policy from a GPO.

Read More
Gouache painting of baskets of apples and pears with a line of leftover apples, one of them vermilion

EXCEPT Operator in SQL Server: Distinct Rows and Differences

December 26, 2018
Pinal Dave
SQL Tips and Tricks
SQL Distinct, SQL Operator, SQL Scripts, SQL Server

The EXCEPT operator returns the rows of one query that are missing from another, with duplicates removed. This post shows the difference between two small order tables, the old WHERE 1 = 0 trick for distinct rows, and how NULLs behave.

Read More
Gouache painting of a short straight path and a long winding path leading to the same vermilion gate

IIF in SQL Server: IF THEN Logic Compared With CASE

December 24, 2018
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL CASE, SQL Function, SQL Scripts

IIF in SQL Server is a short way to write IF THEN logic with two outcomes. This post compares it with CASE in a small juice shop table, shows that both produce the same plan, and covers NULL, data types and the WHERE clause.

Read More
Retained completed fabric rolls are separate from unfinished work on a background loom.

SQL SERVER – T-SQL Script to Check SQL Server Job History

December 22, 2018
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, SQL Server Agent

SQL Server Agent Job History can be queried from msdb. A New Zealand customer requested this report during our weekly health check.

Read More
Each sample group is compared with its own local measuring jig.

SQL SERVER – How to Write Correlated Subquery?

December 21, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Table Operation

A Correlated Subquery references the outer query. I use a stock-item comparison after the earlier single-table aggregate lesson.

Read More
Individual vessels and a separate grouped tray sit beside distinct reference vessels.

SQL SERVER – Two Different Requirements for a Single Table Subquery

December 20, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server

A subquery can compare rows with an aggregate from the same table. A junior DBA asked about this over lunch.

Read More
Gouache painting of two oversized pumpkins sitting on a small wooden cart, one cart wheel painted vermilion

Only Two VLFs: Cannot Shrink the Log File Any Further

December 19, 2018
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Error Messages, SQL Scripts, Transaction Log, VLF

A log file with only two VLFs cannot shrink any further, and DBCC SHRINKFILE tells you so. The message says the number of logical log files cannot be fewer than 2. Here is the script that reproduces it and the DBCC LOGINFO output that explains it.

Read More
Previous 1 … 92 93 94 95 96 97 98 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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