Viewing 15 posts - 1,846 through 1,860 (of 59,066 total)
Ah... totally got it. Thank you for the feedback.
Understood on the 3 second SLA but that doesn't seem to be the predominant issue. The 1 or 2 day sleeping spids...
February 17, 2023 at 5:41 pm
Thank you, I think the other factor is that there are more than 100 tables that have dependency on this table, so the delete might be looking into all...
February 17, 2023 at 5:19 pm
I can't help on AOAG because I've never had to use it. Once someone helps you figure that out, I can give you a very strong hint on how to...
February 17, 2023 at 4:30 pm
We are seeing some stale connections open for long duration and causing blocking chains. My question is how can track/calculate the idle time for each user session.
Almost without exception,...
February 17, 2023 at 4:09 pm
Jeff, when done right, natively compiled stored procedure achieve incredible performance gains. They are compiled software (DLLs), much like C++ code. The problem is that there are many limitations...
February 17, 2023 at 3:39 pm
You can get it from system views:
Example:
select
so.name, st.name, sc.text
from sys.triggers st inner join sysobjects so on st.parent_id = SO.id inner join syscomments sc on st.object_id = sc.id where so.name...
February 17, 2023 at 3:35 pm
The setting is 1000 and 100 respectively.
You REALLY need to change that ASAP.
February 17, 2023 at 3:32 pm
Not sure how I can help. The earlier level of code is obviously not producing code that will discriminate against facilities. There's nothing in the code you posted that will...
February 17, 2023 at 4:37 am
On the question about the facility parameter, I was basing that off your comment in your original post which says...
"... when I select only 1 facility, it...
February 16, 2023 at 11:45 pm
It's a fairly common occurrence. Please see the following article.
https://www.sommarskog.se/query-plan-mysteries.html
And I totally agree with Ed B's recommendation about the use of sp_ and I'll extend that to the general use...
February 16, 2023 at 10:54 pm
First of all, the last line of that code needs some "bullet-proofing" to prevent missing most of the entire last day of the month if times are included.
February 16, 2023 at 10:47 pm
Good grief. It just keeps getting worse. Even 99.9% logical fragmentation has absolutely no effect on index SEEKs but ChatGPT would have you believe the opposite is true
.
I found an alternative to my specific problem. I used the identity to also sort the data and had another column that I could use to sort the data....
February 16, 2023 at 7:47 pm
FWIW, Jeff, it would be great to see a list of common SQL problems that people ought to be able to solve. I'd add in
February 16, 2023 at 7:40 pm
Trust me, I don’t use format specifically because of your previous remarks. I changed as little as possible to illustrate a point.
Ah... now I understand. Heh... I thought "WTH? ...
February 16, 2023 at 3:38 am
Viewing 15 posts - 1,846 through 1,860 (of 59,066 total)