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
Get wait stats related session id.

SQL SERVER – Get Wait Stats Related to Specific Session ID With sys.dm_exec_session_wait_stats

August 28, 2017
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server, SQL Server 2016, SQL Wait Stats

From SQL Server 2016, sys.dm_exec_session_wait_stats shows wait stats for a specific session ID. Here is how to use it, and why it fails on older versions.

Read More
Two plant trellises begin at different points, so an early flower is outside the shorter one

What is the Biggest Limitation of ISDATE() Function? – Interview Question of the Week #137

August 27, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Function, SQL Server

Why does ISDATE(‘6666-04-30’) return 1 but ISDATE(‘1111-04-30’) return 0? Here are what I see as the two biggest limitations of the ISDATE() function.

Read More
SQL Server Management Studio (SSMS) - Unable to Connect to SSIS - The Specified Service Does Not Exist as an Installed Service

SQL Server Management Studio (SSMS) – Unable to Connect to SSIS – The Specified Service Does Not Exist as an Installed Service

August 26, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Server Management Studio, SSIS

After installing SSMS 17.2, I was unable to connect to SSIS on my machine. The error said the specified service does not exist, which was misleading.

Read More
SQL Server Kerberos authentication error.

SCOM – Alert: SQL Server Cannot Authenticate Using Kerberos Because the Service Principal Name (SPN) is Missing, Misplaced, or Duplicated

August 25, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Security

SCOM warned that SQL Server cannot use Kerberos because the Service Principal Name (SPN) is missing. Here is how I checked and fixed the SPNs for a client.

Read More
A compact fitting sits within two stops while a longer candidate remains outside the allowed gap.

SQL SERVER – Puzzle – Write a Shortest Code to Produce Zero

August 24, 2017
Pinal Dave
SQL Puzzle
SQL Function, SQL Scripts, SQL Server

This Zero puzzle asks for the shortest SQL Server code within three restrictions. I want the exact code and character count.

Read More
SQL Server query window.

SQL SERVER – Learning DATEDIFF_BIG Function in SQL Server 2016

August 23, 2017
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

DATEDIFF returns INT and overflows with Msg 535 on large ranges. SQL Server 2016 adds DATEDIFF_BIG, which returns BIGINT. Here is a simple example.

Read More
A hand passing a cut rose stem with one spotted leaf and a pouch of soil across a garden gate

Asking a SQL Question That Gets Answered: The Reproducible Script

August 22, 2017
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL Server, Starting SQL

Write a reproducible script with minimal tables, synthetic rows, the failing query, expected results, and the exact SQL Server version.

Read More
Previous 1 … 153 154 155 156 157 158 159 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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