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
Jul28

SQL SERVER – View Column Dependencies and Output Columns

Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server, SQL View
6 Comments

To Identify Columns used in a view, I distinguish references from returned output columns. Those lists answer different questions.

Continue Reading
Jul27

EXECUTE AS LOGIN vs EXECUTE AS USER: Where Impersonation Stops

Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Server, SQL User Group
No Comments

Your test passed as a user, yet the sales team still gets an error. Here is where each kind of impersonation stops, and how to get back out.

Continue Reading
Jul26

SQL SERVER – Msg 1833 – File Cannot be Reused Until After the Next BACKUP LOG Operation

Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Error Messages, SQL Scripts, SQL Server, Transaction Log
1 Comment

Adding a file during a demo failed with Msg 1833: file cannot be reused until after the next BACKUP LOG operation. Here is the root cause.

Continue Reading
Jul25

SQL SERVER – FIX: Msg 35250 – The Connection to the Primary Replica is Not Active. The Command Cannot be Processed

Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Error Messages, SQL High Availability, SQL Scripts, SQL Server
No Comments

A reader still got Msg 35250 after my first post, with no mirroring login error in the ERRORLOG. Here are the endpoint and service account checks I asked for.

Continue Reading
Jul24

Finding User Objects in master Created by Accident

Pinal Dave
SQL Tips and Tricks
DBA, SQL Dependency, SQL Server, SQL System Table, System Database
No Comments

Find user objects in master, inspect their purpose and dependencies, and prepare a safe move without removing deliberate server helpers.

Continue Reading
Jul23

How to Count Week Days Between Two Dates? – Interview Question of the Week #132

Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Scripts, SQL Server
6 Comments

How do you count Week Days between two dates in SQL Server? Here is a short script I built from scratch using spt_values and DATEPART.

Continue Reading
Jul22

Finding Which Network Protocol Each Session Uses

Pinal Dave
SQL Tips and Tricks
Best Practices, Computer Network, SQL Server
No Comments

Before you switch off a protocol, find out who still uses it. Two short queries show how each session connected, and why the address is not a person.

Continue Reading
Previous 1 … 260 261 262 263 264 265 266 … 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