Viewing 15 posts - 871 through 885 (of 22,184 total)
Sounds like you're trying to build a universal query, or a catch-all query. These things are notoriously difficult, and as the linked article explains in detail, extremely inefficient (I...
April 13, 2022 at 2:44 pm
Without either the destination location or at least it's orientation, all you're looking at initially is a query within a radius. You can use STWithin to identify any other...
April 13, 2022 at 2:40 pm
If you have MDF & NDF files, you can try using ATTACH to recover them. But, as others have already said, if your database is corrupt, it's in those...
April 13, 2022 at 2:35 pm
Hi everyone! This is my first post on this subreddit. I'm absolutely new to the Sql world and I just signed up for a Udemy course to start learning...
April 12, 2022 at 12:49 pm
Honestly, it sounds like you just need a spreadsheet to rope a few bits & bobs together. I'm with Jeff, focus more on what we're attempting to solve, less on...
April 12, 2022 at 12:40 pm
Straight up: Extended Events or Query Store. Which set of queries are using the most resources? Answer the question.
April 6, 2022 at 4:18 am
It all sounds like pretty traditional query tuning stuff.
You're gathering some metrics, but it doesn't sound like necessarily the right ones. I'd suggest using Query Store or Extended Events to...
April 4, 2022 at 12:45 pm
Total agreement with all of you. Thanks for the comments.
April 3, 2022 at 3:51 pm
Not even going to try to sugar coat it.
I'm not a fan of presenting in a 100% virtual environment.
The lack of interaction, feedback, and just the repetitive nature of talking...
April 2, 2022 at 12:34 pm
Tried with temp table and maxdop option in query and it didn't resolve the issue. Wonder changing the CTP would help?
With utterly incomplete information, not seeing the query, structures...
April 1, 2022 at 7:41 pm
Actually we have a database which is not part of availability group and it's reading the data from secondary replica and inserting into the database which is not a...
April 1, 2022 at 7:39 pm
Take a look at the execution plan. It's going to be all one allocation.
UNION ALL isn't a bad performer in general. In fact, usually, you get better performance with UNION...
April 1, 2022 at 12:02 pm
Agreed. 5 is too low. You can query the plans in cache to get a sense of the costs. I have a blog post on it.
March 30, 2022 at 5:54 pm
Literally no magic switch or setting that's going to improve performance most of the time, like Michael says.
In addition to his questions, what is your cost threshold for parallelism. Adjusting...
March 30, 2022 at 4:41 pm
Capture wait statistics for the individual query. Also, get the execution plan when it's slow and when it's fast and compare the two.
March 30, 2022 at 1:39 pm
Viewing 15 posts - 871 through 885 (of 22,184 total)