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
Two ivory frames lie on a wooden table, one over blue woven cloth and one with a plain gray inset.

XQuery string-length: Count Content Without Markup

July 28, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL XML

XQuery string-length counts the selected element string value. Seven bounded cases separate content from markup, empty elements from missing elements, and missing XML from existing documents.

Read More
A hand fits a brass hinge pin while matching spare pins lie on the bench.

Finding Duplicates Before Adding a Unique Constraint

July 27, 2009
Pinal Dave
SQL Tips and Tricks
Duplicate Records, Ranking Functions, SQL Constraint and Keys, SQL Group By, SQL NULL

A unique constraint fails on the first duplicate it meets and tells you about only one. Here is how to list them all and clean up safely.

Read More
A fishing net hauled onto a jetty holds a few whole fish while sand and pebbles stream through its mesh.

Full-Text Search Basics

July 26, 2009
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server, SQL String

Full-text search basics explains catalogs, full-text indexes, CONTAINS, and LIKE so SQL Server searches match the question and the data.

Read More
A small ladder stands beside a stable wooden platform in a quiet empty workshop.

How to Patch SQL Server Without a Bad Morning

July 25, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Installation

Before you patch SQL Server, check backups, plan replica and cluster sequencing, record builds, and prepare a tested recovery path.

Read More
SQL Server Management Studio Full Screen.

SQL SERVER – Maximizing View of SQL Server Management Studio – Full Screen – New Screen

July 24, 2009
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

Two ways to get more room in SQL Server Management Studio: show results in a separate tab and switch SSMS to full screen, from my TechEd India 2009 demo.

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
A leaking gutter dripping into a nearly full rain barrel on a bright dry day, one drop caught in mid-fall.

Calculating the Cost of a Slow Query

July 22, 2009
Pinal Dave
SQL Performance
DBA, Query Store, SQL CPU, SQL Performance, SQL Server

Cost of a slow query includes frequency, CPU, reads, waits, and user time; learn to turn SQL Server measurements into a practical tuning priority.

Read More
Gouache painting: on a greenhouse bench a rectangular pane of glass lies beside an empty wooden frame of the same outer size, its four rails joined with open air inside

geometry STBoundary: A Polygon Edge Is a Different Shape

July 21, 2009
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STBoundary returns the edge of a shape as another geometry instance. I inspect that result independently from the source. A polygon’s boundary is not another filled polygon with the same area.

Read More
SQLAuthority News - Authors Visit - DelhiBuzz TechEd on July 11, 2009

SQLAuthority News – Authors Visit – DelhiBuzz TechEd on July 11, 2009

July 20, 2009
Pinal Dave
SQL Tips and Tricks

My report from DelhiBuzz TechEd on July 11, 2009, where Delhi got its own PASS Chapter, with thanks to the people who made the day a success.

Read More
SQL Server Management Studio Query Results Window.

SQL SERVER – Get Last Running Query Based on SPID

July 19, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server DBCC, SQL System Table

How to see the last running query of another session based on its SPID, using @@SPID to find session IDs and DBCC INPUTBUFFER to read the query.

Read More
Previous 1 … 486 487 488 489 490 491 492 … 593 Next
  • Books
  • Testimonials
  • Privacy Policy

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