The ST_OrderingEquals function is equivalent to the following:
CREATE FUNCTION DBO.ST_OrderingEquals( geo1 ST_Geometry, geo2 ST_Geometry )
RETURNS INT
BEGIN
RETURN geo1.ST_OrderingEquals( geo2 );
END
Note
The ST_OrderingEquals function is not present by default in newly created databases.
Use the sa_install_feature system procedure to install the spatial SQL compatibility functions. See sa_install_feature system procedure.