STIsValid (geometry Data Type)
SQL Server 2012
Returns true if a geometry instance is well-formed, based on its Open Geospatial Consortium (OGC) type. Returns false if a geometry instance is not well-formed.
The OGC type of a geometry instance can be determined by invoking STGeometryType().
SQL Server produces only valid geometry instances, but allows for the storage and retrieval of invalid instances. A valid instance representing the same point set of any invalid instance can be retrieved using the MakeValid() method.
