Spatial data types allow for location-based queries by representing geometric objects like points, lines, and polygons. SQL Server supports both flat (GEOMETRY) and round earth (GEOGRAPHY) spatial data types that adhere to Open Geospatial Consortium standards. Spatial data can be input and output in different formats and queried using spatial methods and indexed for performance with spatial indexes.