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 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
SQL server LEFT JOIN with ON clause.

SQL SERVER – Interesting Observation of ON Clause on LEFT JOIN – How ON Clause affects Resultset in LEFT JOIN

March 15, 2009
Pinal Dave
SQL Puzzle
SQL Joins, SQL Scripts

Why does a filter in the ON clause on LEFT JOIN give a different result than the same filter in WHERE? Here is my answer to a reader’s question.

Read More
SQL SERVER - Observation - Effect of Clustered Index over Nonclustered Index

SQL SERVER – Observation – Effect of Clustered Index over Nonclustered Index

February 4, 2009
Pinal Dave
SQL Puzzle
SQL Constraint and Keys, SQL Index, SQL Scripts

An observation from my query optimization work: the effect of clustered index on a nonclustered index, shown with a sample table and execution plans.

Read More
Previous 1 … 22 23 24 25 26 27 Next
  • Books
  • Testimonials
  • Privacy Policy

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