FUNCTION  fObjidFromSDSS

Computes the long objID from the 5-part SDSS numbers.

The bit-fields and their lengths are skyversion[5] + rerun[8] + Run[16] + Camcol[3] + mu[8]+ field[11] + obj[13]
select dbo.fObjidFromSDSS(752,8,3,300,12) as fObjid

Input and output parameters

nametypelengthinoutpnum
@skyversionint4input1
@runint4input2
@rerunint4input3
@camcolint4input4
@fieldint4input5
@objint4input6
 bigint8input0