Sample data and scripts using Microsoft spatial SQL. Code developed using SQL Server 2008 R2, but everything still works as of April 2016 up through Microsoft SQL Server 2014. Any suggestions or improvements are welcome.
All scripts and tables used here are based on the GEOMETRY data type
A number of tutorials are available from GISDoctor.com
Part 1 - Welcome to Spatial SQL
Part 2 - Basic Spatial SQL Scripts
Part 3 - More Basic Spatial SQL Scripts
Part 4 - Mulit-Point to Line Example