Viewing 15 posts - 1,381 through 1,395 (of 10,144 total)
jtrask (7/13/2016)
I like the idea of doing it on the fly. There's no point in having...
July 14, 2016 at 2:48 am
SQLRNNR (7/13/2016)
ChrisM@Work (6/29/2016)
tindog (6/29/2016)
ChrisM@Work (6/29/2016)
tindog (6/29/2016)
ChrisM@Work (6/29/2016)
tindog (6/29/2016)
Now Wales are after independence from England to 'safeguard' their future...despite the fact that they also voted in favour of Brexit :w00t:
July 14, 2016 at 2:10 am
Is the UPDATE always followed by a SELECT of the new values?
UPDATE [cpwarn] set [autonum] = [autonum]+@1
WHERE [tablecode]=@2
SELECT autonum, tablecode FROM cpwarn WITH (NOLOCK)
WHERE tablecode='prog\DONUMREG\''001''\''2016 '''...
July 13, 2016 at 5:35 am
paolobianchi (7/13/2016)
voilà 🙂thank you
Paolo
Thanks - but these are estimated plans. If possible can you post up actual plans? An actual plan of the SELECT is straightforward, use the query from...
July 13, 2016 at 5:12 am
Pro100 (7/13/2016)
Yea, i know what SQL tells me but I post it here cause i thought someone will help me rewrite it.
Post the whole query.
July 13, 2016 at 4:14 am
Capture actual execution plans for each operation against the table, and post them as .sqlplan file attachments.
July 13, 2016 at 4:10 am
SQLPain (7/12/2016)
I took out the distinct.If somebody else could also look into it that would be great
This should be close:
SELECT --DISTINCT
x.[Facilitator],
[Funded Apps] = SUM(CASE WHEN y.[Status] = 'Funded'...
July 13, 2016 at 3:00 am
SQLPain (7/12/2016)
I took out the distinct.If somebody else could also look into it that would be great
Sure. There's a ton of redundant joins and stuff in it but something...
July 13, 2016 at 2:29 am
rmurray 17656 (7/13/2016)
July 13, 2016 at 1:35 am
J Livingston SQL (7/11/2016)
ChrisM@Work (7/11/2016)
Assuming you're in a playpen, CHECKPOINT then dbcc dropcleanbuffers. You might free up a few kb 😀
I'll tell you what I'll do Chris......as its only a...
July 11, 2016 at 10:11 am
Assuming you're in a playpen, CHECKPOINT then dbcc dropcleanbuffers. You might free up a few kb 😀
July 11, 2016 at 10:02 am
Eliminated that pesky spill:
== JLS1 ==========================================================================
SQL Server parse and compile time:
CPU time = 0 ms, elapsed time = 8 ms.
Table 'testtable'. Scan count 34, logical reads...
July 11, 2016 at 9:55 am
J Livingston SQL (7/11/2016)
== CJM2 ==========================================================================Table 'testtable'. Scan count 9, logical reads 24440, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads...
July 11, 2016 at 9:20 am
J Livingston SQL (7/11/2016)
guess I am !!only 12 GB here
Try with this index G, I'm getting about 10% improvement.
-- CREATE UNIQUE NONCLUSTERED INDEX [idx_Code_Dates] ON [dbo].[testtable] ([Code] ASC,[enddate]...
July 11, 2016 at 9:00 am
J Livingston SQL (7/11/2016)
It's quick G but not quite as quick as this, which uses no Black Magic at all:
I dont get the same results Chris....any thoughts ??
PRINT '==...
July 11, 2016 at 7:31 am
Viewing 15 posts - 1,381 through 1,395 (of 10,144 total)