Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot initialize the Geography field
Message
De
21/03/2012 09:34:03
 
 
À
21/03/2012 09:08:31
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01538885
Message ID:
01538890
Vues:
26
After having done more research on it, it appears this command can be shortened as this:
UPDATE Client SET [Geography]=geography::Point(Latitude,Longitude,4326)
So, I wonder why I see so many examples on the net with the long version, which is people using a temporary field in the table to hold up the character syntax of the location such as POINT(-114.07136 51.00093) and using that later in the update command to update the Geography type field. Basically, as the Geography field can be initialized as is directrly from the Latitude and Longitude fields, is there any reason to hold somewhere in the table a field for the POINT(-114.07136 51.00093) syntax?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform