Viewing 15 posts - 1,396 through 1,410 (of 10,144 total)
J Livingston SQL (7/11/2016)
ChrisM@Work (7/11/2016)
IBG's first query looks like this:
SELECT...
July 11, 2016 at 6:45 am
Jeff Moden (7/7/2016)
ChrisM@Work (7/7/2016)
;WITH...
July 11, 2016 at 5:03 am
Following on from this, I had a few hours to spare on Saturday morning to spend on JLS' test harness.
IBG's first query looks like this:
SELECT code, startdate AS ts,...
July 11, 2016 at 4:31 am
Raghavender (7/8/2016)
ChrisM@Work (7/7/2016)
Raghavender (7/7/2016)
July 11, 2016 at 1:43 am
That's awesome G - I've been in and out of meetings all day so haven't had a chance to play yet, but I bet there's some tweaking potential!
July 8, 2016 at 9:18 am
Sangeeth878787 (7/8/2016)
Hi,
I am trying to load select output result into variable, but I am not able to achieve either using SET or Select method.
Eg @
declare @v-2 varchar(max) =...
July 8, 2016 at 3:15 am
Luis Cazares (7/7/2016)
I think that I understand what you're saying about the TOP filtering before the aggregate, even if the execution plan indicates...
July 8, 2016 at 3:12 am
Raghavender (7/7/2016)
July 7, 2016 at 9:50 am
Raghavender (7/7/2016)
One more question:Is substring() not compatible with SQL Server 2014 ?
It is compatible. Can you tell us more about the issue you have with it?
July 7, 2016 at 9:36 am
After a bit more fiddling with this, I can get stable and predictable behaviour using an index tailored for my specific query. Adjusting it for the OP's environment yields this:
CREATE...
July 7, 2016 at 9:32 am
This was using local data but I could share actual plans with you privately?
July 7, 2016 at 8:01 am
Luis Cazares (7/7/2016)
...The TOP 1000 is not helping because it needs to group the data before limiting the results....
That was my first thought too Luis so I set up a...
July 7, 2016 at 7:32 am
You might find this version a little easier to follow than the IBG original and it only reads the data once, so it's quite a bit quicker:
;WITH DateSequence AS (
SELECT...
July 7, 2016 at 4:49 am
BWFC (7/6/2016)
ChrisM@Work (7/6/2016)
BWFC (7/6/2016)
Phil Parkin (7/5/2016)
tindog (7/5/2016)
Michael L John (7/5/2016)
July 6, 2016 at 3:03 am
ekant_alone (7/5/2016)
yes this is expected. I need data in that particular range of hours in order to keep the result set small.
So your range might be several days long, capturing...
July 6, 2016 at 2:19 am
Viewing 15 posts - 1,396 through 1,410 (of 10,144 total)