STIsClosed (geometry Data Type)
SQL Server 2012
Returns 1 if the start and end points of the given geometry instance are the same. Returns 1 for geometry collection types if each contained geometry instance is closed. Returns 0 if the instance is not closed.