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 taut linen thread runs around three wooden pegs set in a board, bending at the second peg into an L-shaped path

geometry STPointN: Read a One-Based Point Position

June 7, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geometry STPointN selects a point from an instance. The example keeps its one-based position visible and returns NULL when the requested position exceeds the line point count.

Read More
An old paraffin lamp beside a new rechargeable lantern on a porch step

T-SQL Features Added in Recent Versions

June 5, 2011
Pinal Dave
SQL Tips and Tricks
Compatibility Level, JSON, SQL Function, SQL Server, SQL Server 2022

T-SQL features added in recent SQL Server versions shorten common date, comparison, string, and JSON patterns when deployed deliberately.

Read More
A reusable pattern stamp and a hinged working jig serve visibly different tasks.

SQL SERVER – Question to You – When to use Function and When to use Stored Procedure

June 4, 2011
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Server, SQL Stored Procedure

Deciding when to use functions or stored procedures depends on the caller and required work. I want examples behind that choice.

Read More
A cut rose branch with thorns, pruning shears and a clay pot on a greenhouse workbench.

REGEXP_REPLACE Text Cleanup: Replacing Tags Is Not Parsing HTML

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

REGEXP_REPLACE can remove controlled tag-like text, but that is not the same as parsing HTML. Test quoted brackets, surviving script text and word boundaries before deciding whether the replacement fits the input.

Read More
Gouache painting: three wooden shelves each hold the same three items: a large butternut squash for the year, a red apple for the month and a small blue plum for the day

CONVERT Date Styles: Use Explicit Numeric Formats

May 31, 2011
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server

CONVERT date styles make date displays explicit. Keep the typed value for date logic and agree the output format with the receiving interface.

Read More
Ceramic vessels, a wooden box, folded cloth, stones and a cord-bound walnut rest on a wooden tray.

OPENJSON Default Schema: Read Its Type Codes

May 29, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

OPENJSON default schema exposes key, value and type. Compare all six type codes, retain JSON null, and distinguish scalar text from nested fragments.

Read More
Blue and terracotta ceramic beads beside an open wooden case containing a green bead.

geometry STAsText: Z and M Values Need a Different Export

May 20, 2011
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STAsText returns spatial text without the Z and M values carried by an instance. I compare it with ToString using two points. Identical XY text can hide a difference in the original payload.

Read More
Previous 1 … 43 44 45 46 47 48 49 … 92 Next
  • Books
  • Testimonials
  • Privacy Policy

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