sqlserver读取插入空间数据

 select     (t.shape.STAsText()) as shape,t.id from geotest t order by 1   offset 0 rows fetch next 10 rows only
INSERT INTO geotest(shape)
VALUES (geometry::STGeomFromText('LINESTRING (100 100, 20 180, 180 180)', 0));
原文地址:https://www.cnblogs.com/Leechg/p/12796227.html