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: in a sports room, two identical pegged racks hold the same four team bibs in cream, blue, sage and red

XML sql:column: Compare XML With a Relational Value

May 3, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

XML sql:column passes a typed relational value into XQuery. Keep node existence separate from a missing document and a scalar Boolean.

Read More
Two storks with red beaks rearranging sticks in a new nest on top of a village chimney

Migrating From MySQL to SQL Server: AUTO_INCREMENT, LIMIT and Other Differences

May 1, 2011
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Identity, SQL Migration, SQL Server

Plan migrating from MySQL with clear translations for identity values, paging, dates, booleans, string functions, and upserts.

Read More
A table top used as a template, traced in pencil onto a fresh sheet of plywood on trestles.

SQL SERVER – CTAS – Create Table As SELECT – What is CTAS?

April 30, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Table Operation

CTAS stands for Create Table As Select. In SQL Server you do it with SELECT INTO, which creates the new table and fills it with data in one step.

Read More
Dairy cows walking home along a farm lane at dusk, one cow lagging far behind at a bend.

Finding the Slowest Stored Procedures With sys.dm_exec_procedure_stats

April 26, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Server, SQL Stored Procedure

Find the slowest stored procedures with cache statistics, compare CPU and reads, and use two snapshots to isolate one busy hour.

Read More
Three distinct stamps match three clay impressions beside a separate blank fallback tile.

SQL SERVER – How to Use Decode in SQL Server?

April 23, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

CASE expresses the DECODE mapping in this SQL Server example. I keep the named matches and default value explicit.

Read More
A jigsaw puzzle with pieces sorted into groups before being fitted together

Common Table Expressions for Readability

April 20, 2011
Pinal Dave
SQL Tips and Tricks
CTE, SQL Coding Standards, SQL Server, Temp Table

Common table expressions for readability name query steps and support recursion, but they do not promise cached intermediate results.

Read More
Two overlapping pale ceramic tiles beside a terracotta slab and blue and sage stones.

geometry STDistance: Measure the Closest Points of Two Shapes

April 19, 2011
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STDistance measures the shortest distance between points belonging to two represented shapes. I compare an interior gap with an endpoint gap. Intersecting shapes provide a useful zero-distance case.

Read More
Previous 1 … 320 321 322 323 324 325 326 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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