Viewing 15 posts - 16 through 30 (of 50 total)
Hi Scott, this is oversimplified but it reproduces the problem. The question becomes, what is missing so we do not have to wrap EA.IsArchived in a ISNULL?
/*
DROP...
September 24, 2021 at 6:27 pm
I do have this index. It is clustered and unique (but I also tested non-clustered and non-unique versions of it). Every "fast" plan is using it.
I will take some time...
September 24, 2021 at 5:32 pm
Thanks Scott and Jonathan. I agree that the statement is confusing for both developers and SQL Server. My problem is that this statement (which is actually an extract from a...
September 24, 2021 at 5:16 pm
Hi Daniel,
I actually store shares and votes per share. Most corporations have outstanding shares that are often big integers and votes per share that are small integers (typically 1 but...
July 29, 2021 at 1:32 pm
Hi WHS,
I am not sure of what you mean by "vs implementing a function". The only way I know to prevent SQL Server from truncating is to perform the truncation...
July 28, 2021 at 2:17 pm
Hello Mike,
As knowledgeable Joe might be, he seems to ignore some of the challenges programmers are facing each and every day.
I can certainly write better code than the script I...
December 2, 2020 at 9:15 pm
Thanks a lot. I will preciously keep a copy of this code!
November 27, 2020 at 5:49 pm
Jeff,
You do not understand and that is OK. I clearly stated in my initial post that CLR neither optimal nor required in my example. I am simply experimenting with CLR...
November 4, 2019 at 9:33 pm
Thanks Solomon,
I am using the exact same query. Having two distinct queries for states and countries is not an effective long-term solution since I may need to join multiple times...
November 4, 2019 at 6:21 pm
As far as I can tell, the 2017 plan is identical to the 2014 plan (and isn't expected?)
March 15, 2019 at 3:08 pm
Here is the TimelineMatch function. I have to admit it is a strange function and its purpose is to avoid writing « November 1, 2018 at 8:13 am
Thanks andy,
I moved the expression into an OUTER APPLY and the statement runs faster than ever (and that was expected).
October 31, 2018 at 2:58 pm
March 27, 2018 at 2:01 pm
March 14, 2018 at 7:51 am
Viewing 15 posts - 16 through 30 (of 50 total)