Viewing 15 posts - 35,236 through 35,250 (of 59,099 total)
You asked for suggested performance improvements and I can only go by the code you posted. Removing the ISNULLs in the fashion I suggested and for the reason I...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 25, 2011 at 6:37 am
kenambrose (1/24/2011)
You're other point is too silly to merit a response...
Not need for that type of attack. Stick to the subject. Either respond to a point or not....
--Jeff Moden
Change is inevitable... Change for the better is not.
January 25, 2011 at 6:27 am
Also, you can greatly reduce the number of ISNULL calculations simply because you cannot compare against a NULL. For example, the following snippet from your code...
case when ISNULL(L.AEProductVol,0) >...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 7:44 pm
Agh! Sorry, Lynn, I missed where you said...
!!!! Nevermind, doesn't work !!!!
... at the bottom of your post.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 7:28 pm
Lynn Pettis (1/24/2011)
SET NOCOUNT ON
CREATE TABLE #Sample
...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 7:18 pm
Indeed. Happy New Year to you, as well. It's going to be a great year. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 7:13 pm
Hi Sandeep and welcome aboard!
It's good that you posted data for an example but most people like to test their code before posting it as an answer. The problem...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 7:08 pm
pwalter83 (1/18/2011)
Sorry about the mistake in the DDL, I have corrected the same in my earlier post...it should be:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NCV_BL_DHL_TEMP](
[BL_ID] [decimal](10, 0) NOT NULL,
[BL_NUM]...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 7:02 pm
ColdCoffee (1/24/2011)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 7:00 pm
moorthy.jy (1/24/2011)
The table contains CRD_X column related to BID_X column.
If any CRD_X contains value "CR" then i need...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 6:57 pm
Adding indexes won't help, either. Take a look at your ON and WHERE clauses... pretty sure both are non-SARGable.
...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 6:02 pm
tfifield (1/24/2011)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 5:54 pm
SQLkiwi (1/23/2011)
I have made a number of small changes to the published text based on comments received so far. Thanks to everyone for their opinions and insights.
You've folded the...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 5:52 pm
UMG Developer (1/24/2011)
You said 10,000 accounts, but your code only creates 1,000. I just wanted to make sure 1,000 is what you ran with so my results would be comparable.
Agh!...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 3:17 pm
mister.magoo (1/24/2011)
Dave,I haven't tested yours, but can see that it does not meet with Sir Jeff's strict guidelines....
BWAA-HAA!!!... I'm just the humble tester here. The OP posted the original...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2011 at 3:14 pm
Viewing 15 posts - 35,236 through 35,250 (of 59,099 total)