Your SQL command was:
SELECT TOP 50
 specobj.plate as specobj_plate, specobj.mjd as specobj_mjd,
 specobj.fiberid as specobj_fiberid, 
 specobj.ra as specobj_ra, specobj.dec as specobj_dec, 
 star.apstar_id, star.ra as star_ra, star.dec as star_dec
FROM apogeeStar AS star 
 CROSS APPLY dbo.fGetNearestSpecObjEq( star.ra, star.dec, 0.05) AS near 
 JOIN specobj ON near.specobjid=specobj.specobjid 

Your query output (max 500,000 rows):

specobj_platespecobj_mjdspecobj_fiberidspecobj_raspecobj_decapstar_idstar_rastar_dec
32285486398126.0244931.300991apogee.apo1m.s.stars.hip.2M08240588+3118034126.02452850341831.3009471893311
9235240470229.1266-2.0960639apogee.apo25m.s.stars.000+45.2M15163027-0205455229.126127-2.095992
29085461170218.129237.97483apogee.apo25m.s.stars.000+60.2M14323101+0758293218.1292397.974828
264254232518205.4941318.874376apogee.apo25m.s.stars.000+75.2M13415860+1852278205.49416918.874393
290554580307205.8445518.128078apogee.apo25m.s.stars.000+75.2M13432268+1807410205.84453418.128073
290554580332205.8836919.32622apogee.apo25m.s.stars.000+75.2M13433209+1919342205.88373919.326172
290554580354205.9538518.749198apogee.apo25m.s.stars.000+75.2M13434891+1844570205.95380318.749172
26425423230206.0781618.481334apogee.apo25m.s.stars.000+75.2M13441873+1828524206.07807618.481226
290554580290206.1852217.960519apogee.apo25m.s.stars.000+75.2M13444444+1757379206.18518217.96055
290554580321206.3087519.588807apogee.apo25m.s.stars.000+75.2M13451409+1935196206.30872519.588789
275554507397206.349518.739478apogee.apo25m.s.stars.000+75.2M13452385+1844222206.34941318.739517
290554580217206.8876217.836996apogee.apo25m.s.stars.000+75.2M13473302+1750133206.88760117.83704
290554580192206.9973418.240116apogee.apo25m.s.stars.000+75.2M13475939+1814256206.99748118.240471
290554580126207.1282317.75639apogee.apo25m.s.stars.000+75.2M13483077+1745228207.12823617.756357
274954241295220.0952913.655794apogee.apo25m.s.stars.010+60.2M14402293+1339230220.0955513.656391
211953792334208.5967425.720781apogee.apo25m.s.stars.029+77_MGA.2M13542316+2543152208.59651725.72089
27965462983253.5883611.380726apogee.apo25m.s.stars.030+30.2M16542120+1122506253.5883711.380731
279654629100253.6187211.563177apogee.apo25m.s.stars.030+30.2M16542848+1133475253.61869111.563217
279654629101253.6602311.977405apogee.apo25m.s.stars.030+30.2M16543846+1158385253.66026211.977379
27965462960253.7249411.639463apogee.apo25m.s.stars.030+30.2M16545398+1138220253.72494111.639472
27965462947253.7987511.377613apogee.apo25m.s.stars.030+30.2M16551170+1122392253.79875511.377573
340754971632224.0710821.739923apogee.apo25m.s.stars.030+60.2M14561705+2144236224.07107221.739889
33875495110224.2006322.352117apogee.apo25m.s.stars.030+60.2M14564815+2221076224.20066522.352133
215054510233224.4837421.676062apogee.apo25m.s.stars.030+60.2M14575608+2140337224.48369621.676044
215054510209225.200820.847238apogee.apo25m.s.stars.030+60.2M15004819+2050499225.20080820.847197
215054510415225.2840622.833836apogee.apo25m.s.stars.030+60.2M15010818+2250020225.28411322.8339
600156072901207.9526924.920877apogee.apo25m.s.stars.030+75.2M13514869+2455174207.95290624.92152
211953792334208.5967425.720781apogee.apo25m.s.stars.030+75.2M13542316+2543152208.59651725.72089
247553845422205.2633928.439378apogee.apo25m.s.stars.037+79_MGA.2M13410322+2826217205.26341728.439367
247553845184205.3759928.371258apogee.apo25m.s.stars.037+79_MGA.2M13413024+2822163205.37600128.371206
247553845195205.401328.356803apogee.apo25m.s.stars.037+79_MGA.2M13413631+2821243205.40129428.356752
247553845477205.4646828.389617apogee.apo25m.s.stars.037+79_MGA.2M13415152+2823224205.46468328.38957
247553845167205.4774828.349936apogee.apo25m.s.stars.037+79_MGA.2M13415459+2820595205.47748328.349873
247553845474205.4846628.432417apogee.apo25m.s.stars.037+79_MGA.2M13415631+2825565205.48466228.432388
247553845189205.4923528.264497apogee.apo25m.s.stars.037+79_MGA.2M13415816+2815518205.49235828.264408
247553845472205.5161828.419156apogee.apo25m.s.stars.037+79_MGA.2M13420388+2825088205.51616728.419117
247553845500205.5502128.440703apogee.apo25m.s.stars.037+79_MGA.2M13421204+2826265205.55019828.440702
247553845495205.6228.404689apogee.apo25m.s.stars.037+79_MGA.2M13422879+2824167205.61999428.40464
247553845516205.6634628.466011apogee.apo25m.s.stars.037+79_MGA.2M13423922+2827574205.66345828.465965
247553845102205.6728928.318969apogee.apo25m.s.stars.037+79_MGA.2M13424150+2819081205.67291828.31893
247553845517205.7648328.383519apogee.apo25m.s.stars.037+79_MGA.2M13430354+2823003205.7647928.383436
18515352418241.4742323.051648apogee.apo25m.s.stars.040+45.2M16055380+2303058241.47420423.051626
185253534573242.1783323.461389apogee.apo25m.s.stars.040+45.2M16084282+2327406242.17841923.4613
185253534549242.6347722.819918apogee.apo25m.s.stars.040+45.2M16103232+2249116242.63468422.819895
185253534562242.8736324.057408apogee.apo25m.s.stars.040+45.2M16112965+2403267242.87355824.05744
16565353323242.8909724.485399apogee.apo25m.s.stars.040+45.2M16113384+2429072242.89102324.48534
185253534597242.9345322.891498apogee.apo25m.s.stars.040+45.2M16114429+2253294242.93455922.891504
165753520511243.6373823.884848apogee.apo25m.s.stars.040+45.2M16143290+2353055243.63708423.884884
165553523295238.3809625.599225apogee.apo25m.s.stars.041+50_MGA.2M15533149+2535557238.38124925.598831
201753474255204.8077327.65365apogee.apo25m.s.stars.041+78_btx.2M13391387+2739132204.80779727.653671