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
Detailed painting of a boatyard inspection board with one filled square recess, one empty recess, and a matching loose block on the workbench.

Columns With No Statistics: Read Each Warning

July 10, 2009
Pinal Dave
SQL Performance
SQL Performance, SQL Scripts, SQL Server, SQL Statistics

A columns-with-no-statistics warning needs a column-by-column investigation. Compare warning lists before and after targeted statistics creation, and check the actual query behavior before deciding that a missing statistic caused poor performance.

Read More
A plain open ledger with blank pages beside a small metal stamp on a warm wooden desk.

Auditing Who Changed What, and When

July 8, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Security

Plan SQL Server auditing around the question you need answered, then distinguish security events from row history, change tracking, and CDC.

Read More
Unsorted lentils pouring into a grinder with a red pebble among them

Logical Order Is Not Execution Order: A Conversion Error WHERE Missed

July 7, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Error Messages, SQL Function, SQL Server

Reproduce a conversion error that survives a WHERE filter, inspect optimizer choices, and replace fragile casts with TRY_CONVERT or proper types.

Read More
SQL SERVER - Languages for BI - MDX, DMX, XMLA

SQL SERVER – Languages for BI – MDX, DMX, XMLA

July 6, 2009
Pinal Dave
SQL Tips and Tricks
Business Intelligence, SQL Server

A friend knew BI means Business Intelligence but asked which languages it uses. Quick definitions of MDX, DMX and XMLA, the languages of SQL Server BI.

Read More
Gouache painting: on a harbor quay, two pallet stacks of identical crates stand side by side after the same loading step

SUM ROWS Versus RANGE: Ties Change a Running Total

July 5, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Order By, SQL Server

SUM ROWS versus RANGE defines different running positions. Keep tie-breaking and peer grouping explicit when comparing the resulting totals.

Read More
Blue wooden pins beside a long empty terracotta tray.

CAST Without a Length: The Default Can Truncate Text

July 4, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

CAST Without a Length can silently choose a target width that is too short for the source text. I compare omitted and explicit lengths. The same conversion syntax can look harmless while losing the end of a string.

Read More
Six empty ceramic cups in two rows, with terracotta, blue and pale glazes.

CROSS APPLY VALUES: Unpivot Fixed Columns and Preserve NULLs

July 3, 2009
Pinal Dave
SQL Tips and Tricks
PIVOT and UNPIVOT, SQL Joins, SQL Scripts, SQL Server

CROSS APPLY VALUES can turn a fixed set of columns into rows without dropping their NULL values. I make any missing-value filter explicit. That keeps the reshaping step separate from the decision to exclude data.

Read More
Previous 1 … 357 358 359 360 361 362 363 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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