Viewing 15 posts - 391 through 405 (of 1,825 total)
Thats pretty much as i had thought,
are you able to post the rest of the code ?
Remember though , we are unpaid volunteers here and wont...
January 21, 2011 at 7:03 am
Something like this ?
SELECT LOC_NUM, sum(case DEPARTMENT WHEN 'CCD' THEN 1 else 0 end) AS CCD,
...
January 21, 2011 at 6:40 am
IMO , cursoring over 16 rows should really be causing you a lot of pain in itself.
-- EDIT Typo , "should" should be "shouldn't"
Still , is this what you...
January 21, 2011 at 6:06 am
IMO , you are asking the wrong question.
What are you doing with this data once it is in variables ?
If you tell us the whole problem then you may well...
January 21, 2011 at 5:41 am
If ORDER by is not specified , no order can be guaranteed.
I blogged about this a little while back
January 20, 2011 at 8:30 am
This simplest methods of this are
1) Use "not exists"
Select Id from table1 where not exists(Select childid from table2 where Table2.ParentId = Table1.ID)
or
2) Left outer join
Select Table1.Id from Table1 left outer...
January 20, 2011 at 6:56 am
Try setting the ARITHABORT / ARITHIGNORE settings
http://msdn.microsoft.com/en-us/library/aa259212%28v=sql.80%29.aspx
January 20, 2011 at 3:44 am
Cool , glad you got there in the end.
For the icing on the cake, you should change the scalar udf into an inline one too.
January 19, 2011 at 1:55 pm
Try including the delete_flag to both of the indexes.
Should resolve the nested loop lookup.
January 19, 2011 at 8:37 am
qwerty 87425 (1/19/2011)
Dave Ballantyne (1/19/2011)
You could try the SSIS fuzzy lookupI've never heard of it. Can you give some information?
Google is your friend 🙂 , though it may not be...
January 19, 2011 at 5:54 am
GilaMonster (1/19/2011)
Depends. If the row estimation is off that key lookup is going to hurt.
Agreed, just commenting that the overall 'shape' is pretty much inline with what i was expecting.
January 19, 2011 at 4:47 am
Dont look to bad...
Can you post the "actual" plans though , you only posted the estimated
January 19, 2011 at 4:36 am
Please post both of the plans as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
January 19, 2011 at 4:17 am
What is the difference in time between
SELECT ca.adr_key,dbo.HaversineDistanceKm(@varLatitude,@varLongitude,ca.adr_latitude,ca.adr_longitude) latlonkm
FROM co_address ...
January 19, 2011 at 3:27 am
Throwing in the towel on this one...
http://www.sqlservercentral.com/Forums/Topic1048672-392-2.aspx#bm1049856
Am i not being clear in the issue ?.
--EDIT
Ok, he now gets it http://www.sqlservercentral.com/Forums/FindPost1049874.aspx
January 19, 2011 at 3:00 am
Viewing 15 posts - 391 through 405 (of 1,825 total)