Viewing 15 posts - 6,421 through 6,435 (of 18,926 total)
ColdCoffee (5/4/2011)
Ninja's_RGR'us (5/4/2011)
DimDate.FeeWeekEndDate > DATEADD(D, 0, DATEDIFF(D, 0, GETDATE())) AND DimDate.FeeWeekEndDate <...
May 4, 2011 at 2:11 pm
How much data is the query returning?
Another option is to insert the results into temp table. Then do an insert where not exists. The good thing here is...
May 4, 2011 at 2:08 pm
LutzM (5/4/2011)
Ninja's_RGR'us (5/4/2011)
What culture is he from?I personnally wouldn't be offended... but I'm from around here :-D.
I'm from around here, too. How come we never met? :-D:-P
Regarding the subject (but...
May 4, 2011 at 2:00 pm
Yes but not because of missing ram. Most likely you hve a few plans that are bad in the bunch and slowing everything else down.
Things I'd check immediately... index...
May 4, 2011 at 1:56 pm
ColdCoffee (5/4/2011)
Ninja's_RGR'us (5/4/2011)
WHERE (
DATEADD( DD , DATEDIFF(DD,0,DimDate.FeeWeekEndDate ),0) = @ThisDayLastYR
OR
...
May 4, 2011 at 11:58 am
I've had a lot of success doing 1 union all in a derived table to avoid the self join in a similar query.
BETWEEN OR BETWEEN in that case gave me...
May 4, 2011 at 11:53 am
HTH.
May 4, 2011 at 11:48 am
WHERE (
DATEADD( DD , DATEDIFF(DD,0,DimDate.FeeWeekEndDate ),0) = @ThisDayLastYR
OR
...
May 4, 2011 at 11:47 am
MostInterestingMan (5/4/2011)
Ninja's_RGR'us (5/4/2011)
MostInterestingMan (5/4/2011)
TheSQLGuru (5/4/2011)
May 4, 2011 at 11:45 am
SQLMyFriend (5/4/2011)
If MS can add some filter on the...
May 4, 2011 at 11:36 am
May 4, 2011 at 11:33 am
Looks nice too (still searching) : http://www.sqlservercentral.com/articles/T-SQL/62061/
May 4, 2011 at 11:32 am
I can't find the article I had in mind (really old, like sql 2000).
That one looks decent.
http://www.sqlservercentral.com/articles/Performance+Tuning/ospr/666/
May 4, 2011 at 11:30 am
MostInterestingMan (5/4/2011)
TheSQLGuru (5/4/2011)
May 4, 2011 at 11:28 am
Both.
I've seen it done elegantly with a calendar table with OR C.Y = @Year - 1 AND C.month = month and C.day = day.
Or redo the query with union all.
OR...
May 4, 2011 at 11:19 am
Viewing 15 posts - 6,421 through 6,435 (of 18,926 total)