Viewing 15 posts - 406 through 420 (of 1,825 total)
Please post ddl and sqlplans.
Please see this article http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
January 19, 2011 at 1:06 am
In that case, i would assume that the vast majority of you rows have a long or lat of null.
Doesnt really negate what i have said before
January 18, 2011 at 9:06 am
You need to make the query sargable, at present you are looking at EVERY row to decide if that "point" it required.
You need something more like this....
BTW , Havent got...
January 18, 2011 at 7:34 am
No you cant replace it but you can cut down on the amount of calls considerably.
As i said before , if you calculate the Geographic square based upon :
@varLatitude...
January 18, 2011 at 5:40 am
Have you considered the use of a calendar table ?
January 18, 2011 at 2:29 am
I dont often pull people up , but that is very bad advice.
You ask if there is a better way ,yes there is. Craig mentioned the non-SARGability of such queries.
Read...
January 18, 2011 at 1:18 am
Can you provide us with some simpler code that we can execute that will demonstrate your problem with MAX ?
January 17, 2011 at 5:26 am
I think this page will help you ....
January 17, 2011 at 4:12 am
Are you using 2008 ?
Have you looked at the spatial functions.
I would imagine the 'worst' offender here is using the function HaversineDistanceKm as a SARG.
Making a calculate the min and...
January 17, 2011 at 4:10 am
Cool, thanks for the feedback.
Always nice to know that the problem got resolved.
January 17, 2011 at 1:36 am
No , since Sep28 matches on both rows , the update order is arbitrary.
January 14, 2011 at 9:32 am
A fairly cool (IMO) change ,superseding old articles, could be happening to SSC in the future.
Comments ??
http://www.sqlservercentral.com/Forums/Topic1047170-433-1.aspx
January 14, 2011 at 9:03 am
Or even a link to 'key' discussion points for new articles.
I would imagine the majority of browsers would not read the full discussion following an article publication.
January 14, 2011 at 8:59 am
If you need to know who modified some data (including deletions) then you really have to pro-actively monitor use CDC http://msdn.microsoft.com/en-us/library/bb522489.aspx (or similar).
January 14, 2011 at 6:25 am
Viewing 15 posts - 406 through 420 (of 1,825 total)