Viewing 15 posts - 1 through 15 (of 17 total)
Kudos for you all guys!!!
By adding adr_delete_flag in indexes it tooks only 2 seconds.
Keep it up. And again thanks to you all.
January 19, 2011 at 8:49 am
Oh! I didn't look that third tab "Execute Plan" after query execution.
Here is actual exe plan for you guys.
January 19, 2011 at 8:27 am
Hi,
Attached is the actual execution plan for those two SQLs. Let me explain how I got these sql plan files.
1. I click on "Include Actual Execution Plan'
2. Ran SQL...
January 19, 2011 at 8:02 am
Hi,
Please find the attached execution plans for those two SQL.
Let me know you should need more details if any.
Thanks!
January 19, 2011 at 4:27 am
Hi,
SQLs are taking 20 and 15 seconds respectively. I did try using both temp table and table variable no major difference.
Thanks!
January 19, 2011 at 3:36 am
Hi
I have implemented your suggestions and modified insert statement as below.
INSERT INTO @latlongdtl(adr_key,latlonkm)
SELECTca.adr_key,dbo.HaversineDistanceKm(@varLatitude,@varLongitude,ca.adr_latitude,ca.adr_longitude) latlonkm
FROMco_addressAS caWITH (NOLOCK)
WHEREca.adr_delete_flag = 0
ANDca.adr_latitude BETWEEN (@varLatitude-@varRange) AND (@varLatitude+@varRange)
ANDca.adr_longitude BETWEEN (@varLongitude-@varRange) AND (@varLongitude+@varRange)
It has improved performance...
January 19, 2011 at 3:08 am
Hi,
I have written SP now to get nearest clubs information by measuring in KM as below.
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Bhushan Bagul
-- Create date: DD-MON-YYYY ...
January 19, 2011 at 2:42 am
INSERT INTO @latlongdtlinkm(adr_key,latlonkm)
SELECT adr_key,(6367...
January 18, 2011 at 8:32 am
Hi,
I have updated procedure and removed function calls from everywhere in SP.
However there is one statement in I am inserting records in table variable and using this table further.
INSERT INTO...
January 18, 2011 at 7:07 am
Hi,
I don't have any issues with MAX function now. I analysed this procedure and find out that most of the processing time is going on in a function call "HaversineDistanceKm"...
January 18, 2011 at 5:26 am
Yes I am using SS 2008. Thanks for your reply. I need to do some R & D on Spatial Functions in 2008. But my another concern is using MAX...
January 17, 2011 at 5:09 am
Hi Muhammad,
It's giving an error as below
Msg 102, Level 15, State 1, Line 8
Incorrect syntax near ','.
October 21, 2010 at 4:47 am
Hi Muhammad,
It's running without error but not updating club_status in table unfortunately.
October 21, 2010 at 12:22 am
Seems this Pivot will work for me. Thanks for you reply!
October 11, 2010 at 7:05 am
Viewing 15 posts - 1 through 15 (of 17 total)