Viewing 15 posts - 826 through 840 (of 49,571 total)
Please note that the code pattern used here has a severe performance problem.
See https://www.simple-talk.com/content/article.aspx?article=2280 for explanations and options to fix
August 28, 2017 at 5:16 am
Please note that the code pattern used here has a severe performance problem.
See https://www.simple-talk.com/content/article.aspx?article=2280 for explanations and options to fix
August 28, 2017 at 5:15 am
http://www.sqlservercentral.com/stairway/72399/
http://www.sqlinthewild.co.za/index.php/category/sql-server/indexes/
And that's just the first two that came to mind. Spend some time with your favourite search engine and do some reading.
August 28, 2017 at 4:12 am
Without DDL I can't write the query...
Calculate a row_number over the partition and order that you want for the sum. Do that in a CTE. Then join that...
August 28, 2017 at 3:01 am
The problem, I suspect, is that log flushes are synchronous. The log has to be written in order, so with 1000 flushes a second, even if you had a 1ms...
August 27, 2017 at 9:04 am
Please don't start multiple threads for the same problem
https://www.sqlservercentral.com/Forums/1893974/PLE
August 27, 2017 at 9:01 am
Why? If the CTE works, why not use it?
You can do the same thing with a subquery, but it might be harder to read.
August 27, 2017 at 6:45 am
August 26, 2017 at 5:49 pm
Nothing I said is affected by isolation level.
August 25, 2017 at 10:14 am
Every time LineNo resets to 1 (as ordered by recid), you want the chunk number to increase by 1.
Is that a correct summary of the requirement?
August 25, 2017 at 7:09 am
Viewing 15 posts - 826 through 840 (of 49,571 total)