Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of atn function
Message
 
 
To
13/04/2010 03:17:51
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01459871
Message ID:
01459905
Views:
56
>What is the equivalent of the atn function as shown here in this Access example:
>
>
>UPDATE [TABLENAME] SET XAxis = (cos(((4*((4*atn(1/5))-
>  (atn(1/239))))/180)*[TABLENAME].Latitude)*cos(((4*((4*atn(1/5))-
>  (atn(1/239))))/180)*[TABLENAME].Longitude));
>
Take also a look here SQL Server Zipcode Latitude/Longitude proximity distance search

and also http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/sql-server-2008-proximity-search-with-th (using new geography types in SQL Server 2008).
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform