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
A cafe umbrella stand full of identical black umbrellas, each handle tied with a different colored ribbon.

Tagging Queries With SESSION_CONTEXT to Trace App Users

June 9, 2022
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Connection, SQL Server, SQL Server 2016, SQL Server Security

Tag SQL Server work with SESSION_CONTEXT, read tags in audit defaults and modules, and handle read-only values and pooled connections.

Read More
Three braided bundles sit beside their separate groups of woven strips.

SQL SERVER – Split Comma Separated Value String in a Column Using STRING_SPLIT

May 4, 2018
Pinal Dave
SQL Tips and Tricks
CSV, SQL Function, SQL Scripts, SQL Server, SQL Server 2016

To Split Comma Separated Value String inputs, I use STRING_SPLIT with CROSS APPLY. The example associates each class with its student.

Read More
SQL Server 2014 Setup Feature Selection.

SQL SERVER – Installation Wizard Hang Forever – Please Wait on Feature Selection Page

February 24, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, SQL Server, SQL Server 2016, SQL Server Installation

Adding Analysis Services to SQL Server 2014, the Installation Wizard hung on “Please Wait” at feature selection, even after my lunch. Here is what fixed it.

Read More
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
SQL SERVER 2016 - Trace Flag 1117 is Discontinued. Use the Options Provided with ALTER DATABASE

SQL SERVER 2016 – Trace Flag 1117 is Discontinued. Use the Options Provided with ALTER DATABASE

December 26, 2016
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server 2016, SQL Server Configuration, TraceFlags

SQL Server 2016 discontinued trace flag 1117 and 1118 for TempDB. Use the options in ALTER DATABASE instead, as I found on a client server.

Read More
A hand press has produced a stack of identical clay tiles through repeated work

How to Find Number of Times Function Called in SQL Server? – Interview Question of the Week #104

December 25, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Function, SQL Scripts, SQL Server, SQL Server 2016

A function was causing CPU spikes. How many times was that function called, and at what cost? The SQL Server 2016 DMV dm_exec_function_stats shows it.

Read More
A diagnostic cabinet preserves empty molds while the finished vessels remain in the source cabinet.

SQL SERVER – CLONEDATABASE: Generate Statistics and Schema Only Copy of the Database

December 20, 2016
Pinal Dave
SQL Performance
Schema, SQL Scripts, SQL Server, SQL Server 2016, SQL Statistics

CLONEDATABASE can Generate Statistics and schema-only diagnostic copies without copying table rows. I use that distinction when investigating optimizer behavior.

Read More
1 2 3 4 Next
  • Books
  • Testimonials
  • Privacy Policy

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