13 Jul 2018 by Gerry Schmitz
Your "before and after" single quotes "changed". You need to "simplify" your string handling so you get a better handle on what's happening. SET @b = geometry::STGeomFromText(''''POLYGON '+ @input + ' '''', 4326); SELECT @b = geometry::STGeomFromText(''''POLYGON ' + @input + @input2 + '' ',...