Viewing 15 posts - 1,006 through 1,020 (of 2,648 total)
Okay I will try creating these indexes and see if it benefits. Since, the query isn't completing in its entirety I have no clue of the optimizer suggesting an...
July 2, 2020 at 9:18 pm
You have not indexed any of the temporary tables, maybe you should? Do you have any specific recommendation you can provide?
Thank you so much for all the help...
July 2, 2020 at 6:52 pm
You have an OUTER APPLY (aliased c2) in the query but in the WHERE clause of the main query you have
AND D.LiveTable = c2.TableName
So why is it an OUTER APPLY...
July 2, 2020 at 5:22 pm
Yep, I agree with you Jonathan AC Roberts, but what if the number of columns is dynamic? With version 1 it has 3, version 2 has 2, version 3...
June 30, 2020 at 5:46 pm
Not sure that an index will help anything since there is no WHERE clause or ORDER BY. No matter what index you put on there, it is going to...
June 30, 2020 at 4:13 pm
The best way to get this answered is to post the actual SQL that is dynamically generated so we can see what the SQL is doing. (Just change exec(@SQL) to...
June 30, 2020 at 3:02 pm
deleted answer
June 29, 2020 at 8:55 pm
June 25, 2020 at 12:07 am
Try this:
select i.ItemID
from Item i (nolock)
left join QueueItemDeactivation qid (nolock)
on i.ItemID...
June 22, 2020 at 4:32 pm
You could create a temporary table, insert all the rows you need into that. Then just select * from the temporary table.
June 18, 2020 at 4:33 pm
Thanks this looks great. I only found away to take the first numbers off.
You really need a lot more test data, you can replace later numbers by adding more...
June 17, 2020 at 7:47 pm
Here is something that could be a start, if you have no other option:
DECLARE @Words TABLE (Words nvarchar(20));
INSERT INTO @Words
VALUES ('ROAD'),
...
June 17, 2020 at 5:28 pm
The only reason why I got it right was because it has bitten so many people that work in every company that I've ever worked in including me back...
June 11, 2020 at 6:54 pm
We have a set of SSIS packages for a data warehouse ETL, all the dtsx packages are in one solution (project) the entire project is checked into source control (currently...
June 8, 2020 at 8:33 pm
SELECT DISTINCT
Reg_Text
FROM dbo.TestTable
WHERE Reg_Text NOT LIKE '[A-Z][A-Z][A-Z][A-Z][0-9][0-9][0-9][0-9]%'
June 7, 2020 at 10:54 pm
Viewing 15 posts - 1,006 through 1,020 (of 2,648 total)