Viewing 15 posts - 1,846 through 1,860 (of 59,061 total)
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
Thanks Jeff!
Hey wait...So format not so great? Googling now...
Don't "Google It". Most people don't have a clue about it. Go read the article I provided the link for. It...
February 16, 2023 at 3:34 am
Also, what would you folks partition the table on? The reason I ask that is that I DO have a partitioned table. It's only about 2TB with 10 years of...
February 16, 2023 at 3:30 am
Heh... Some of the people I've had to work with in the past seem to make a pretty good living at "If it ain't broke, fix it until is" mantra....
February 16, 2023 at 3:05 am
Crud... forum software lost my page on page 2... "bumping" that page with this post to get it to show up.
February 16, 2023 at 2:52 am
I'm curious... has anyone checked to see if any of that 17TB can be archived and moved out of the main table?
February 16, 2023 at 2:49 am
Viewing 15 posts - 1,846 through 1,860 (of 59,061 total)