Viewing 15 posts - 1,591 through 1,605 (of 7,614 total)
Sorry, I somehow thought was from a different person (pietlinden), totally my fault, I was going on auto-pilot.
May 6, 2021 at 9:49 pm
Scott - I agree that NOLOCK has its purposes, as do all query hints. Otherwise they wouldn't be in there to begin with. I was just trying to...
May 6, 2021 at 3:26 pm
You don't need the extra check on the flag:
WHERE @myFlag <> 1 OR name NOT IN ('A', 'C') May 6, 2021 at 3:11 pm
If the DLRID are mostly unique, or mostly come in batches together when not unique, I suggest encoding the DLRIDs into a numeric code.
That is, create a separate table with...
May 5, 2021 at 10:46 pm
CXCONSUMER is waiting on parallelism.
Have you adjusted the SQL Server configuration for 'cost threshold for parallelism' to be something larger than the default? The default is 5, IIRC, which is...
May 5, 2021 at 5:15 pm
That's easy enough, you can pre-calc a proper date range, using either variables or in a cte. I'll use variables here just because they're easier to adjust for diff test...
May 5, 2021 at 5:11 pm
To be absolutely sure of correct matches, you'll need something to sequence the rows so that you know the specific order of the rows. I added an id for that,...
May 5, 2021 at 4:55 pm
Try this:
GRANT EXECUTE ON xyz.SPName TO LocalSQLaccount AS ADGroup;
May 5, 2021 at 2:43 pm
Scott, thanks.
Not sure that would work in our case, also not quite sure it it would address the ability to suppress certain reports and reset etc.
SQL alerts have...
May 3, 2021 at 5:56 pm
Thank you Scott for the help, this was very close but when I ran it, I got 8 hours of SICK twice for example # 1.
Thanks again !
DS
Oops,...
May 3, 2021 at 1:22 pm
Clustered index scans should definitely be adversely affected by masses of empty space in pages from deleted rows, since the scan will have to read lots more...
May 2, 2021 at 2:13 pm
See if this gives you the correct totals. I have not taken performance into consideration yet, just trying to get the correct result.
Be sure to add a date check to...
May 2, 2021 at 11:37 am
(1) Agree with ZZ.
(2) Yes, but you will also need to look at missing index stats at least, possibly cardinality data and index operations stats too.
(3) Yes, sort of. index...
April 30, 2021 at 9:24 pm
Unless your table is named "sol(nolock)", I would avoid using NOLOCK. It is in my coding standards that NOLOCK should be avoided except where potential data inaccuracy is acceptable...
April 30, 2021 at 9:14 pm
Note, too, that the OP did not indiscriminately use NOLOCK everywhere.
In fact, it was used on only 1 table out of 9 (or so).
To me, that is exactly the way...
April 30, 2021 at 6:02 pm
Viewing 15 posts - 1,591 through 1,605 (of 7,614 total)