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
Sep2

SQL SERVER – Find Week of the Year Using DatePart Function

Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server
5 Comments

The DATEPART function returns a week number according to its week definition. I choose that convention before using calendar logic.

Continue Reading
Sep1

Finding Orphaned Child Rows Before Adding a Foreign Key

Pinal Dave
SQL Tips and Tricks
Database, SQL Constraint and Keys, SQL Scripts, SQL Server
No Comments

Find orphaned child rows before adding a foreign key, review their business meaning, validate relationships, and confirm constraint trust.

Continue Reading
Aug31

Writing a Disaster Recovery Runbook: RPO, RTO and a Restore Test

Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, SQL Backup and Restore, SQL High Availability
No Comments

Build a disaster recovery runbook around agreed RPO and RTO, usable backup chains, instance dependencies, clear roles, and restore tests.

Continue Reading
Aug30

FOR JSON Data Types: How bit, Dates and Money Come Out

Pinal Dave
SQL Tips and Tricks
Data Warehousing, JSON, Master Data Services, SQL Data Storage
No Comments

Your API returns 1 and the client wanted true. Here is how FOR JSON picks a JSON type for bit, dates, decimal, money, binary and NULL, and how to fix it.

Continue Reading
Aug29

SQL SERVER – GetRegKeyAccessMask : Could Not Get Registry Access Mask For Registry Key – SQL Server Cluster

Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Error Messages, SQL Server Cluster
2 Comments

In a two-node SQL Server Cluster, SQL would not come online on one node and wrote no ERRORLOG. The cluster log showed GetRegKeyAccessMask. Here is the fix.

Continue Reading
Aug28

How to Get Started with SQL Server 2016? – Interview Question of the Week #086

Pinal Dave
SQL Interview Questions and Answers
SQL Documentation, SQL in Sixty Seconds, SQL Server 2016, Starting SQL
No Comments

A candidate asked me in an interview: how do I get started with SQL Server 2016? Here is my answer for anyone who has not tried it yet.

Continue Reading
Aug27

SQL SERVER – How to Fix Error 8134 Divide by Zero Error Encountered

Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server
10 Comments

Error 8134 means an expression tried to divide by zero. I choose the intended undefined-result behavior before guarding the division.

Continue Reading
Previous 1 … 308 309 310 311 312 313 314 … 847 Next

SQL Server slow? Let's fix it together in about four hours.

Pinal Dave

In my Comprehensive Database Performance Health Check, you share your screen, I guide you, and we fix your biggest performance troublemakers. No passwords. No remote access.

You keep every script, and the know-how to fix it yourself next time.

Want your whole team to learn it?

My Practical Workshop has no PowerPoint, just live demos. My AI Enablement Workshop shows your team where AI saves hours, and where it quietly costs them.

Over 400 customers have worked with me this way, and not one shared a password. See all consulting options.


Who We Are

Pinal Dave is an SQL Server Performance Tuning Expert and independent consultant with over 24 years of hands-on experience. He holds a Masters of Science degree and numerous database certifications.

Pinal has authored 19 books and 125 Pluralsight courses. To freely share his knowledge and help others build their expertise, Pinal has also written more than 5,800 database tech articles on his blog at https://blog.sqlauthority.com.

Pinal is also a CrossFit Level 1 Trainer (CF-L1) and CrossFit Level 2 Trainer (CF-L2).


Nupur Dave is a social media enthusiast and an independent consultant. She primarily focuses on the database domain, helping clients build short and long-term multi-channel campaigns to drive leads for their sales pipeline.


Shaivi Pinalkumar Dave is a book author and a women’s artistic gymnast.

  • Books
  • Testimonials
  • Privacy Policy

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