'' geometry :: Point 'a échoué car le paramètre 1 n'est pas autorisé à être nul.' erreur lors de la conversion latlng en point GEOM

J'essaie simplement de convertir Lat et Long Coordinates de Taxis en points de geometry, mais quand je fais ma requête j'obtiens cette erreur: '' geometry :: Point 'a échoué parce que le paramètre 1 n'est pas autorisé à être nul.' La déclaration a été résiliée.

UPDATE [dbo].[pdPoints] SET puGeom = GEOMETRY::Point(beginsortingp_lng, beginsortingp_lat, 4326), dfGeom = GEOMETRY::Point(dropoff_lng, dropoff_lat, 4326) 

J'ai essayé d'append une déclaration

 WHERE beginsortingp_lng is not null or dropoff_lng is not null or beginsortingp_lat is not null or dropoff_lat is not null or country_id is not null or city_id is not null; 

mais je reçois le même résultat. 🙁 Toute personne qui peut aider?

Vous avez besoin and au lieu de or

 WHERE beginsortingp_lng is not null and dropoff_lng is not null and beginsortingp_lat is not null and dropoff_lat is not null and country_id is not null and city_id is not null; 

Essayez ceci, vous verrez que certaines lignes auront encore la valeur null ou peut-être plus. Toute null va casser votre mise à jour.

 SELECT * FROM pdPoints WHERE beginsortingp_lng is not null or dropoff_lng is not null or beginsortingp_lat is not null or dropoff_lat is not null or country_id is not null or city_id is not null;