Dr Greg Low Working with SQL Server Spatial Data DAT33 3
SELECT GEOMETRY::STGeomFromText ('POLYGON ((10 10, 10 20, 20 10, 10 10))',0);
CREATE TABLE CustomerLocations ( CustomerID INT PRIMARY KEY, Latitude FLOAT, Longitude FLOAT, Location AS GEOGRAPHY::Point(Latitude,Longitude,4326) PERSISTED );
CREATE SPATIAL INDEX IX_Shapes_Shape ON Shapes(Shape) USING GEOMETRY_GRID WITH (BOUNDING_BOX=(0,0,512,512), GRIDS =(LOW,LOW,LOW,LOW), CELLS_PER_OBJECT = 32);
Continue your Ignite learning path Visit Microsoft Virtual Academy for free online training visit Visit Channel 9 to access a wide range of Microsoft training and event recordings Head to the TechNet Eval Centre to download trials of the latest Microsoft products