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: a wooden staircase with a red banister climbing to a landing in a quiet hall

hierarchyid GetAncestor: Stop at the Root

March 5, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

hierarchyid GetAncestor returns a logical ancestor path. Its zero-distance result is the original node, while a request beyond the root returns NULL.

Read More
SQL SERVER - Concurrency Problems and their Relationship with Isolation Level

SQL SERVER – Concurrency Problems and their Relationship with Isolation Level

March 4, 2011
Pinal Dave
SQL Tips and Tricks

What are the four concurrency problems, like lost updates and dirty reads, and how does each one relate to the isolation level you pick in SQL Server?

Read More
SQL SERVER - Demo Script - Keeping CPU Busy

SQL SERVER – Demo Script – Keeping CPU Busy

March 3, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts

A demo script for keeping CPU busy: I wrote this query at an event to simulate high CPU usage, and it pushed CPU from 10% to 80%.

Read More
Gouache painting: three wooden stands in a meadow

EXISTS: A Row Containing NULL Still Exists

February 17, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL Server

EXISTS answers whether qualifying rows exist. Keep missing values separate from missing rows and preserve the intended correlation.

Read More
Glass bottles on a windowsill arranged tallest to shortest, one short vermilion bottle out of place in the middle.

Sorting Correctly: Collation and ORDER BY

February 10, 2011
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL NULL, SQL Order By, SQL Server

Collation and ORDER BY decide case, accent, and text-number order; choose rules explicitly when one report needs different sorting.

Read More
SQL SERVER - Automation Process Good or Ugly

SQL SERVER – Automation Process Good or Ugly

February 8, 2011
Pinal Dave
SQL Tips and Tricks

Is an automation process good or ugly? For T-SQL Tuesday I list the good side of automation in SQL Server, like SQL Agent jobs, and ask for your help.

Read More
OUTPUT INTO illustrated by a botanical printing block, blue and ochre impressions and a preserved paper stack on a printmaking bench.

OUTPUT INTO: Record Old and New Values in One Write

February 7, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL Table Operation

OUTPUT INTO records old and new values during a write, while the transaction determines whether the change survives. Test NULL transitions, unchanged values, rollback and target failures before treating captured rows as committed history.

Read More
Previous 1 … 407 408 409 410 411 412 413 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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