Whenever i am trying to execute my query which as "geom.Reduce(0.01)" returns following exception:
A .NET Framework error occurred during execution of user-defined routine or aggregate "geometry":
System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
System.Runtime.InteropServices.COMException:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.SqlServer.Types.GLNativeMethods.ThrowExceptionForHr(GL_HResult errorCode)
at Microsoft.SqlServer.Types.GLNativeMethods.Reduce(GeoData g, Double tolerance)
at Microsoft.SqlServer.Types.SqlGeometry.Reduce(Double tolerance)
But, when i am changing my tolerance value to 0.0,0.1, etc it shows the excepted result. For a specific tolerance it shows exception. Need help to resolve it as early as possible. It is occurring only on sql14.