Viewing 15 posts - 1,801 through 1,815 (of 22,214 total)
Sometimes the ultimate fix is a rewrite of the queries to a more optimal pattern.
May 26, 2020 at 12:28 pm
I'm just still not getting it.
So, let's try this. You can't have a dynamic join. You have to define a join. Period. To dynamically change whether or not you're joining...
May 26, 2020 at 12:19 pm
This needs pretty detailed analysis, and I'm sorry, I've been busy with work. I'll try to get into it again as soon as I can.
Short answer, I suspect you're dealing...
May 21, 2020 at 11:06 am
I'm still not understanding what you're going for. Apologies.
However, I think what you want is two different LEFT JOINs to the two tables, then use COALESCE to get the column...
May 21, 2020 at 10:58 am
As you've defined it, a simple UNION query will get you what you want.
SELECT a.id_a as Id_Obj,
a.customer_a as Customer,
a.Name_a as Name
FROM dbo.db_a as a
UNION
SELECT b.id_b as Id_Obj,
b.customer_b...
May 20, 2020 at 5:41 pm
So, you're not looking for tuning then, just management?
What about index compression? That's a huge win for some people, depending on your data. Also, columnstore indexes may, emphasize that word,...
May 20, 2020 at 2:11 pm
I have no clue how to remove the attachments. Edit doesn't work, I can change only text.
I have admin access, so I went ahead and removed them for you.
Try...
May 19, 2020 at 5:35 pm
If you want to, get a copy of SentryOne Plan Explorer. It's free. It has a way to anonymize the plans. Post those and no code will be visible.
May 19, 2020 at 3:45 pm
Two things. First, the query is in the plan. I sure don't see anything that's even remotely proprietary, but if there's a concern, you should remove those from the post.
Second,...
May 19, 2020 at 3:45 pm
If you need to join multiple values to multiple values, the better approach is what's called an interim table. .
I don't think 'interim table' is the correct term...
May 19, 2020 at 12:56 pm
Did I misread your compatibility mode? If so, my bad, apologies. Yes, you can have the new compatibility mode enabled and then disable the new cardinality estimator.
As to the rest,...
May 19, 2020 at 11:52 am
I could try to guess at what you're going for, but instead, could you put the table names in with the tables. Show some of the relationships, primary & foreign...
May 19, 2020 at 10:28 am
If you have tables with fewer than 200 rows, the statistics won't be changing very often unless you're doing lots of replacements of that data, so I don't see how...
May 19, 2020 at 10:22 am
Development is where development and testing occurs. No production information should be stored there. You certainly shouldn't have weird cross server queries from production to development. This is a fundamentally...
May 18, 2020 at 5:27 pm
I don't see anything in what you posted to suggest that it's a cache problem. If you have two instances on the server, make sure each one has a max...
May 18, 2020 at 5:24 pm
Viewing 15 posts - 1,801 through 1,815 (of 22,214 total)