FUNCTION  fGreatCircleDist

Returns float holding great circle distance between two points (ra1,dec1) & (ra2,dec2).

The great circle distance is in arcmins, the ras and decs are in degrees.
Sample call to calculate the great circle distance between (87.5°,10°) and (88.4°,10.3°):

SELECT dbo.fGreatCircleDist(87.5,10,88.4,10.3)
=> 56.1198

NameTypeLengthinoutpnum
@ra1float8input1
@dec1float8input2
@ra2float8input3
@dec2float8input4
 float8output1