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
SQL SERVER - Group by Rows and Columns using XML PATH - Efficient Concating Trick

SQL SERVER – Group by Rows and Columns using XML PATH – Efficient Concating Trick

April 5, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL String, SQL XML

A reader wanted students and courses grouped by course and instructor in a single row. Here is a simple concatenation trick with XML PATH that does it.

Read More
Two delivery trolleys stopped nose to nose in a narrow corridor, neither able to pass

What Is a Deadlock in SQL Server?

April 4, 2013
Pinal Dave
SQL Performance
Best Practices, Database, SQL Performance, SQL Server

A deadlock in SQL Server is two sessions each holding what the other needs. I caused one on purpose and read error 1205. Why it is not the same as blocking, who gets killed, and the boring fix that works.

Read More
Identical crumpet rings fill a griddle with their handles pointing in different directions

Plan Cache Duplicates From Whitespace and Case Differences

April 1, 2013
Pinal Dave
SQL Tips and Tricks
Ad Hoc Query, SQL Cache, SQL Server

One extra space or a lowercase keyword gives you a second cached plan. See it in the cache, and learn what actually fixes it.

Read More
A socket wrench sitting slightly loose on a hex bolt, a nearly identical socket from another set lying beside it

Where T-SQL Differs From the ANSI Standard

March 31, 2013
Pinal Dave
SQL Tips and Tricks
Developer, SQL NULL, SQL Paging, SQL Server, SQL String

See where T-SQL differs from the ANSI standard in row limits, concatenation, NULL behavior, and practical query portability.

Read More
SQL SERVER - Identity Fields Review - The SQL Query Techniques Tutorial for SQL Server 2012

SQL SERVER – Identity Fields Review – The SQL Query Techniques Tutorial for SQL Server 2012

March 26, 2013
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Identity, SQL Scripts, SQL Server

Identity Fields Review is a chapter abstract from the Joes 2 Pros SQL Query Techniques Tutorial for SQL Server 2012, a book first tested in my classroom.

Read More
A spider plant in a red pot with baby plantlets that share its brown leaf tip.

What the model Database Passes to Every New Database

March 23, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Server, SQL Server Configuration, System Database

Audit the model database template for recovery model, options, objects, and file size, then verify growth settings on new databases.

Read More
A cloth-covered leather strip whose raised crease remains visible

Masked Values: What Dynamic Data Masking Does Not Hide

March 18, 2013
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Encryption, SQL Server Security

A masked column shows zeros, but a user with SELECT can still filter, sort and guess the real values. Here is the proof and the fix.

Read More
Previous 1 … 276 277 278 279 280 281 282 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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