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
A walker on a hillside at dusk looking over scattered village lights, the nearest one glowing red below the path.

Finding the Nearest Store With the geography Type

August 17, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Index, SQL Server

Find the nearest store with SQL Server geography, validate coordinate order, apply a distance radius, and inspect spatial index use.

Read More
Gouache painting: on a floured board, one long strand of fresh pasta on the left is folded into a V with a doubled-back spike through its middle, overlapping itself

geometry MakeValid: Repair Can Change the Geometry Type

August 14, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry MakeValid returns a valid geometry from an invalid instance, but the result can change type. I keep the original beside the proposed repair. A validity flag alone does not describe everything that changed.

Read More
SQLAuthority News - 2 Sessions at TechInsight 2010 - June 29 - July 1, 2010

SQLAuthority News – 2 Sessions at TechInsight 2010 – June 29 – July 1, 2010

July 28, 2010
Pinal Dave
SQLAuthority News
DBA, MVP, Spatial Database, SQL Joins, SQLAuthority Author Visit

I presented two sessions at TechInsight 2010 in Kuala Lumpur, Malaysia, from June 29 to July 1, 2010. The best part of the trip was the people and their response.

Read More
A round peeled orange beside its peel pressed flat into split, gapping segments on a cutting board.

Spatial Data Types for Beginners

July 24, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Datatype, SQL Server, Starting SQL

Spatial data types in SQL Server use geometry for planes and geography for Earth; points, polygons, and indexes start with valid coordinates.

Read More
Garden edging with the flowers outside the ring and bare soil inside

Fixing Invalid Geography Polygons and Ring Orientation

July 17, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Datatype, SQL Server

Diagnose invalid geography polygons with STIsValid and IsValidDetailed, repair with MakeValid, and check ring orientation and EnvelopeAngle.

Read More
Two shallow wooden trays on pale surfaces, connected by a blue cord, with a terracotta cord passing through the right tray.

geometry STIsValid: Parsed Shapes Still Need a Validity Check

June 22, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STIsValid checks whether a spatial instance satisfies the validity rules for its geometry type. I use two parsed lines to separate those questions. Successful construction alone does not establish that a shape is valid.

Read More
A sealed wooden crate standing alone on a dock with no label on any face.

SQL SERVER – Spatial Database Queries – What About BLOB

May 11, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Datatype, SQL Scripts, SQL Server

Spatial database queries are my favorite subject since TechEd India 2010. Here are the scripts to build the environment, plus a question: what about BLOB?

Read More
Previous 1 2 3 4 5 6 Next
  • Books
  • Testimonials
  • Privacy Policy

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