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: on a music room shelf, one tambourine hangs beside a stacked trio of tambourines

geometry STGeometryType: Type Names Say More Than Dimension

March 7, 2011
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STGeometryType identifies the represented shape type, which carries more information than its dimension. I compare single and multiple shapes in one small query. Equal dimensions do not mean that their structures are interchangeable.

Read More
Sqlcmd.exe window.

SQL SERVER – Running Multiple Batch Files Together in Parallel

March 6, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Utility

I needed SQL code running in parallel for a demo, so I used sqlcmd and start cmd.exe to run multiple batch files together. Can PowerShell do it better?

Read More
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 - 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
Comic strip: the critic in a gray raincoat orders the Garden Hash, Casey calmly lets the ticket wait one minute on the rail, and the critic leaves a napkin that makes Quinn beam and Ace cry happy tears. Casey says, "Cooking four, waiting one. A normal Tuesday."

Wait Stats Summary: Every Wait on One Page

February 28, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Scripts, SQL Wait Stats

This wait stats summary puts every wait from the series on one page: what it means and the first fix to try. On Night 28 at the Clipboard Diner, the critic finally comes on an ordinary Tuesday. The lesson of the whole series is the same as the story’s: know what normal looks like on your server.

Read More
Comic strip: Casey turns four weeks of notes into a one page chart, Ace tries to fix everything at once, and then gets caught about to wake the sleeping night baker with a pot. Jules says, "Night baker on top? Cross it out. Read the next one."

Wait Stats Troubleshooting: From Top Wait to First Fix

February 27, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Scripts, SQL Wait Stats

Wait stats troubleshooting comes down to one habit: find the top real wait, ask its first question, and try one fix. On Night 27 at the Clipboard Diner, Casey tapes a one-page chart to the fridge. Here is that chart for SQL Server, plus one query that shows your top waits with their share and signal percent.

Read More
Comic strip: Jules first hauls twelve pies across the highway, then makes nine cold trips for single slices, and finally relaxes in giant earmuffs beside a full pie case. Casey says, "Pies come at dawn now. Nobody crosses the road at night."

OLEDB Wait Stats: Linked Servers and Remote Calls

February 23, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server, SQL Wait Stats

OLEDB wait stats measure the time SQL Server spends in calls to an OLE DB provider, and that usually means a linked server. On Night 23 at the Clipboard Diner, the pie case is empty and Jules crosses the street for every slice. Learn how to find the waiting session, how OPENQUERY filters on the remote side, and when to keep a local copy instead.

Read More
Previous 1 … 236 237 238 239 240 241 242 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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