Viewing 15 posts - 31 through 45 (of 237 total)
That's great mickyT, thank you and everyone else for your help in this as well as your patience
March 3, 2014 at 11:25 am
MickyT, can you explain
UPDATE POSTCODESTEST SET Location = Geography::Point(Latitude, longitude, 4326)
especially 4326, also how to convert your code into a working SP please
March 2, 2014 at 5:29 am
Sorry MickyT, I didn't see your post before posting, you're solution works, many thanks
March 2, 2014 at 4:04 am
EricEyster (2/26/2014)
then the only thing left is @radius
I've now changed @radius type to float and now I get
Msg 8115, Level 16, State 2, Line 5
Arithmetic overflow error...
March 2, 2014 at 3:57 am
EricEyster (2/26/2014)
Is the lat/long stored as float? you want to make sure all the data types are matching to avoid conversions in the query itself
Yes, both Latitude and longitude
February 26, 2014 at 9:08 am
Thanks, but now I'm getting a different error : -
Msg 8115, Level 16, State 2, Line 5
Arithmetic overflow error converting expression to data type float.
my actual query is :...
February 26, 2014 at 8:18 am
Many thanks for the info, the thing is I can't get the code to work, when I paste it into the query analyser it reports the following error message
Incorrect syntax...
February 26, 2014 at 7:23 am
Many thanks Luis, all helps with my learning of SQL
February 7, 2014 at 1:32 am
That is excellant, thank you so much Michael
February 3, 2014 at 4:07 am
Sorry I've only just replied to your posts as I've been on leave. the reason it was only 50 on my example is that it was an existing SP which...
November 5, 2013 at 11:31 pm
thanks Jeff, it's not something I've used before. What is the advantage? and can the table created be read using VB.net?
November 4, 2013 at 8:00 am
Thanks again Tom, this project is part of a VB.Net project to get a random x amount of postcodes from an SQL Server table and insert the records into...
November 4, 2013 at 7:37 am
As Tom suggests, temp tables seem not to work so I've created and dropped a normal table, I've posted my complete code below incase it'll help anyone else.
USE [misc]
GO
/****** Object:...
November 4, 2013 at 7:32 am
Thanks Keith, that works a treat
November 4, 2013 at 7:30 am
Viewing 15 posts - 31 through 45 (of 237 total)