Your SQL command was:
SELECT TOP 10 objid,ra,dec, 
 flags, 
 flags & 0x00000000FFFFFFFF AS flags_lo, 
 (flags/power(cast(2 as bigint),32)) & 0x00000000FFFFFFFF AS flags_hi 
FROM PhotoObj 

Your query output (max 500,000 rows):

objidradecflagsflags_loflags_hi
1237651758284999323269.9986116395110.001962151209614817209284739806004826856654416785424
1237651758284999326269.9976288329110.00051369910772666824635962622030430212174457360
1237651758284999348270.00269749521-0.00054496153522298310562213786856030212532824592
1237651758284999319270.000479713510.0029972379718051310562210431387226857064024592
1237651758284999325270.002237795210.0030344291275556510562213786830430212507224592
1237651758284999317270.0006838474520.00379184374335808352533601362082685706408208
1237651758284999318269.9998386051690.003863222388223224635959266920026857064057360
1237651758285000990270.0040563389720.00157517842728232352533601362082685706408208
1237651758285001724269.995417357341-0.000116548601276815352533601364642685708968208
1237651758284996827269.9966056742490.00319832570589696352533942108363026452688208