Viewing 15 posts - 2,386 through 2,400 (of 7,608 total)
Many of my dbs are in simple mode since, for those for the most part, we can reload data from the past 12 hours rather easily. So I can have...
June 2, 2020 at 1:58 pm
I really wish SQL would add an option to rebuild within a specified key range. That would allow the benefits of a full rebuild without the downside of forcing it...
June 1, 2020 at 9:07 pm
As to reorganization, I believe it's still best practice to use reorg for columnstore tables (I'm on SQL 2016). Full rowgroups won't be affected at all by this process, but...
June 1, 2020 at 9:04 pm
There's no magic formula to tell you the best fillfactor for 3,000 indexes. Or for 10 indexes, for that matter.
Taking a step back for a broader look, the single most...
June 1, 2020 at 8:46 pm
I'm not 100% sure of what you need, but I think the total from the first table is being overstated. If so, then maybe this:
select
count (H.Customs_Entry_Num)
,max(L.[Child_Customs_Entry_Num_Count])...
May 29, 2020 at 3:40 pm
Thanks both
It looks like it's the ROW_NUMBER() section that's taking the time to work out.
Is there any sort of alternative to that bit?
I need to get the records in...
May 20, 2020 at 2:48 pm
I think you do need at least a couple of indexes. Also, you should capture both pat and ref flags in the same pass of the table and update them...
May 19, 2020 at 3:46 pm
SELECT OrderNumber
FROM #X_ReadytoPick
GROUP BY OrderNumber
HAVING MAX(CASE WHEN OpsStatus = 'Okay' AND SOPstatus IN ('Acknowledgement', 'DocsPrinted') THEN 0 ELSE 1 END) = 0
ORDER BY OrderNumber /*optional, of course*/
May 19, 2020 at 1:57 pm
First try "SELECT COUNT(*) FROM sys.dm_exec_cached_plans", to see how many cached plans you actually have. Then go from there.
May 18, 2020 at 2:46 pm
It really sounds like you should be using a SEQUENCE rather than an identity, that is, that this INSERT is just to get an identity value,...
May 18, 2020 at 2:44 pm
My opinion, if it is a sequence or an identity really depends on a lot more than we can accurately guess from what was posted. It might be that...
May 16, 2020 at 4:58 am
It really sounds like you should be using a SEQUENCE rather than an identity, that is, that this INSERT is just to get an identity value, which is...
May 16, 2020 at 4:57 am
It really sounds like you should be using a SEQUENCE rather than an identity, that is, that this INSERT is just to get an identity value, which is no longer...
May 15, 2020 at 1:30 pm
An alternative is like below. Which performs better depends on total data volume and index(es) present:
Edit: I'm at work so I have only a limited time to review all posts,...
May 4, 2020 at 6:19 pm
You corrupted your data (at least for a relational model). You made it non-atomic, since that column now contains two pieces of info (type and id#), not one (just...
April 29, 2020 at 5:22 pm
Viewing 15 posts - 2,386 through 2,400 (of 7,608 total)