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
Gouache painting of a line of small paper boats waiting before a canal lock gate, the first one painted red

Resource Bottlenecks in SQL Server: A Wait Stats Script That Groups Them

September 17, 2016
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server, SQL Wait Stats

Resource bottlenecks hide in the wait statistics, under a pile of idle waits and totals since startup. This post builds a script that removes the idle waits, measures an interval and groups the rest by resource. It also explains how to read each group and the signal wait.

Read More
One leaf-impressed tile sits between two different interpretation templates.

SQL SERVER – Puzzle – Playing with Datetime with Customer Data

September 15, 2016
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Scripts, SQL Server

Playing with Datetime became a puzzle when one conversion worked for a customer but failed for me. The input was unchanged.

Read More
SQL SERVER - Columnstore Index Cannot be Created When Computed Columns Exist

SQL SERVER – Columnstore Index Cannot be Created When Computed Columns Exist

September 13, 2016
Pinal Dave
SQL Performance
ColumnStore Index, Computed Column, SQL Error Messages, SQL Scripts, SQL Server

A developer found a columnstore index cannot be created on a large history table in SQL Server 2014. The surprise cause: computed columns in the table.

Read More
SQL SERVER - Understanding How to Play With Row Constructor

SQL SERVER – Understanding How to Play With Row Constructor

September 5, 2016
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

A code review surprised me with an unusual use of the Row Constructor. Here is what the code did and how you can play with row constructors yourself.

Read More
Recent impressions remain in wet clay while older marks have been smoothed away

How to Find Recent Executed Queries in SQL Server? – Interview Question of the Week #087

September 4, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Cache, SQL DMV, SQL Scripts, SQL Server

An interview question that stumped candidates: how do you find recent executed queries in SQL Server? A DMV script using sys.dm_exec_query_stats answers it.

Read More
An unmarked seven-compartment organizer sits beside a movable grouping boundary.

SQL SERVER – Find Week of the Year Using DatePart Function

September 2, 2016
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

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

Read More
Tent pegs and slack guy ropes in a flattened patch of grass where a tent used to be

Finding Orphaned Child Rows Before Adding a Foreign Key

September 1, 2016
Pinal Dave
SQL Tips and Tricks
Database, SQL Constraint and Keys, SQL Scripts, SQL Server

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

Read More
Previous 1 … 144 145 146 147 148 149 150 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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