Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot initialize the Geography field
Message
From
21/03/2012 09:34:03
 
 
To
21/03/2012 09:08:31
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01538885
Message ID:
01538890
Views:
25
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
Previous
Reply
Map
View

Click here to load this message in the networking platform