Viewing 15 posts - 4,891 through 4,905 (of 5,843 total)
jlp3630 (11/10/2008)
November 10, 2008 at 2:09 pm
Dude, if you are new to perf tuning and are looking to improve stuff that currently takes days to run that could be a pretty tall order. 🙂
Here is...
November 10, 2008 at 1:26 pm
NOW we are starting to get somewhere! :w00t:
alter function dbo.fn_totalprice (@orderid varchar(max))
returns varchar(max)
as
BEGIN
declare @result money
select @result = sum(UnitPrice * Quantity) from [Order...
November 10, 2008 at 1:17 pm
jlp3630 (11/10/2008)
TheSQLGuru (11/10/2008)
November 10, 2008 at 12:39 pm
If you want a 'cursor', simply create a UDF that takes an OrderID and calculates the SUM in the output. I leave it to the inquisitive reader to implement...
November 10, 2008 at 10:22 am
EdVassie (11/10/2008)
..
.
I guess the above is a long way of saying 'it depends'.
No need to 'guess' there! That was indeed a LONG way of saying "it depends"!! 😀
November 10, 2008 at 8:24 am
Gail, your index choices and join choices were 'too good'! 🙂 Try this one:
SELECT CompanyName, OrderDate, ProductName, OD.UnitPrice, Quantity, SUM(OD.UnitPrice) over (partition by CompanyName, OrderDate, ProductName,...
November 10, 2008 at 8:15 am
The query with the lowest IO requirement is the one with the lowest logical reads (unless there are LOB reads, in which case you also compare lob logical reads).
November 10, 2008 at 8:00 am
>>but they want only the categories that have products,
Doesn't that indicate the need for an EXISTS clause, not a direct join?? Exists would be orders of magnitude faster...
November 7, 2008 at 7:02 am
Marios Philippopoulos (11/6/2008)[hr
Thanks, I have a question on how to judge a SAN's performance (what to use as a baseline etc.), but perhaps this can be reserved for a separate...
November 6, 2008 at 12:33 pm
I must have missed the smiley that indicated you were joking. As for resources required, the main issue with that statement is that almost everyone simply uses SIZE as...
November 6, 2008 at 10:30 am
TRACEY (11/6/2008)
Do you have it set on all your Databases ..(auto sync)...and i take it you never have to run this UPDATE STATISTICS ever..
That is emphatically NOT correct. auto...
November 6, 2008 at 9:40 am
Marios Philippopoulos (11/6/2008)
November 6, 2008 at 9:38 am
Marios Philippopoulos (11/6/2008)
TheSQLGuru (11/6/2008)
Marios Philippopoulos (11/6/2008)
How is SAN architecture in any way beneficial to SQL Server performance?
1) Can you have 1024 drives direct attached effectively? You can do that...
November 6, 2008 at 9:21 am
Marios Philippopoulos (11/6/2008)
How is SAN architecture in any way beneficial to SQL Server performance?
1) Can you have 1024 drives direct attached effectively? You can do that with a 3Par...
November 6, 2008 at 8:52 am
Viewing 15 posts - 4,891 through 4,905 (of 5,843 total)