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
Execution Plan Result Window.

SQL SERVER – Interesting Observation – Execution Plan and Results of Aggregate Concatenation Queries

September 29, 2009
Pinal Dave
SQL Puzzle
SQL Index, SQL View

Reader Bob explains why aggregate concatenation results depend on expression location, using an ANSI point of view, and shares a similar example to run.

Read More
Index on View with Query Usage.

SQL SERVER – Interesting Observation – Index on Index View Used in Similar Query

September 24, 2009
Pinal Dave
SQL Puzzle
SQL Index, SQL Scripts, SQL White Papers

A query on the base table used an index it did not own. It was the index on index view of the same table, an interesting observation from an optimization project.

Read More
Execution plan in SQL Server Management Studio.

SQL SERVER – Execution Plan and Results of Aggregate Concatenation Queries Depend Upon Expression Location

September 20, 2009
Pinal Dave
SQL Puzzle
SQL Documentation

Aggregate concatenation queries can return different results depending on where the expression sits. A simple script based on a note I found on Ward Pond’s blog.

Read More
SQL SERVER - Discussion - Effect of Missing Identity on System - Real World Scenario

SQL SERVER – Discussion – Effect of Missing Identity on System – Real World Scenario

August 11, 2009
Pinal Dave
SQL Puzzle
Database, DBA, SQL Constraint and Keys, SQL Index

Is there any real world reason to list a missing identity in a table? Readers had no new script, but a lively discussion on whether gaps matter.

Read More
Generate primary and foreign keys.

SQL SERVER – Puzzle – Write Script to Generate Primary Key and Foreign Key

July 23, 2009
Pinal Dave
SQL Puzzle
SQL Constraint and Keys, SQL Scripts

A puzzle from a migration project: SSMS cannot script every Primary Key and Foreign Key at once. Can you write a script that generates them all?

Read More
Sql Server Single Record Explorer Tool Window.

SQL SERVER – Interesting Observation of Logon Trigger On All Servers – Solution

June 26, 2009
Pinal Dave
SQL Puzzle
SQL Scripts, SQL Trigger

Why does a logon trigger on all servers fire several times for one login? The answer: several SQL Server services are running and IntelliSense is on.

Read More
SQL SERVER - Solution to Puzzle - Shortest Code to Perform SSN Validation

SQL SERVER – Solution to Puzzle – Shortest Code to Perform SSN Validation

April 29, 2009
Pinal Dave
SQL Puzzle
Database, SQL Scripts

My solution to Jacob Sebastian’s puzzle: the shortest T-SQL code for SSN validation that removes invalid SSN values and returns only the valid ones.

Read More
Previous 1 … 17 18 19 20 21 22 Next
  • Books
  • Testimonials
  • Privacy Policy

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