Viewing 15 posts - 16 through 30 (of 221 total)
GilaMonster (7/24/2013)
Rob-350472 (7/24/2013)
July 24, 2013 at 2:27 am
Added the no-lock hints back, thankfully this keeps the results the same, literally comment out or don't:
OPTION (OPTIMIZE FOR (@MinDate UNKNOWN, @MaxDate UNKNOWN))
And the proc results set changes from ~90...
July 24, 2013 at 2:21 am
Hi Erland,
The results of @@Version:
Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Standard Edition...
July 24, 2013 at 2:08 am
Both were run against a live production server, they're running against tables which log our communications, diferences in row counts (not that significant, a few but not hundreds!) would be...
July 23, 2013 at 7:51 am
Those queries both returned the same value, 1 in each case, for both the proc and the code (with ' around ansi_nulls).
The consolidated table only exists once on the audit...
July 23, 2013 at 7:44 am
I've sussed it out, the code has this column:
CASE WHEN a.User_ID IN (select c.tgtUserID from Audit..tblConsolidated c) THEN 1 ELSE 0 END as UserConsolidated
If I comment out this part of...
July 23, 2013 at 6:28 am
I wondered if someone would pick up on those 😮
I'm aware of their caveats, they're not used in every proc we write but in some they are.
July 23, 2013 at 6:20 am
I did wonder how someone would find those useful to be honest, but I'm no plan guru by any means. See attached...
I emphasise that the only change from scripting the...
July 23, 2013 at 6:14 am
I've uploaded the two execution plans (I had no idea SSMS tools allowed me to save it as a jpg, nifty!).
There's a couple of maxes but no tops in the...
July 23, 2013 at 6:04 am
Hmm, to an extent yes, however, without the objects and data behind it I'm not sure it'll be that useful - basically on the same DB - 'script procedure... Alter...
July 23, 2013 at 4:55 am
As with all our Sprocs really,
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
Then straight into 'Alter Proc...' or 'Create Proc...'
Then the TSQL. Nothing fancy.
July 23, 2013 at 4:45 am
There are very subtle differencs in the Exceution plans between the SP and the code, however, they are different.
July 23, 2013 at 4:38 am
Glad it's still helping people, on a slight side note, I can't recommend SSMS Tool Pack enough for this kind of thing, a colleague fell foul of a rogue restart...
July 1, 2013 at 4:35 am
J. McCarthy (5/10/2013)
May 10, 2013 at 10:02 am
The more I've played with this (and made some interesting discoveries along the way, thanks for hte pointers guys!) the more I realise that trying to build a homegrown solution...
May 10, 2013 at 7:38 am
Viewing 15 posts - 16 through 30 (of 221 total)