DECLARE @g geography
SET @g=
geography::Point([Lat], [Long], 4326) as SAME_GEOM
FROM FencePointsBAHA FB
WHERE (Lat <> 0) AND (Long <> 0) and FenceIDFK=16
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kunal PatelRank #1,359 · 1.2K reputationPosted Mar 30, 2016, 10:55 PM EDT
SET @g = ( SELECT geography::Point([Lat], [Long], 4326) AS SAME_GEOM
FROM FencePointsBAHA FB
WHERE ( Lat <> 0 )
AND ( Long <> 0 )
AND FenceIDFK = 16
)
mohan singh106 reputationPosted Mar 30, 2016, 11:04 PM EDT
Kunal PatelRank #1,359 · 1.2K reputationPosted Mar 30, 2016, 11:16 PM EDT