Viewing 15 posts - 451 through 465 (of 2,648 total)
you either split them into rows in a table or you use dynamic sql . both of these assume you care with good performance.
not looking at performance there is a...
July 19, 2023 at 4:23 pm
it could be the "LEGACY_CARDINALITY_ESTIMATION " being set to ON.
July 19, 2023 at 1:18 pm
IF the split means that you can "reduce" the number of rows in one of the tables due to "duplicate information" then you should do it if savings are significant...
July 17, 2023 at 6:43 pm
while that may have been the case in older versions, actual versions DO ALLOW it for sure.
July 17, 2023 at 6:19 pm
I would really ignore that - it is one of those vulnerabilities that require a USER to open a supplied third party file (specially crafted to abuse the vulnerability) on...
July 17, 2023 at 2:22 pm
Okay I do not recall all the details but a word of warning. With a Partitioned Table you have to include that partition within everything you do or you...
July 15, 2023 at 5:55 pm
standards - and for those that do work a lot on this and use tools to help with coding, putting the alias can be automatic, and expanding the columns will...
July 12, 2023 at 10:48 am
I've just reported one of those AI-generated "SQL Server is good because" essay posts as spam. Do others agree that this is the right thing to do?
Yes. I've reported...
July 10, 2023 at 4:05 pm
with recursive is not a MS SQL option. It is available on other DBMS like Postgres.
July 7, 2023 at 7:18 pm
first - what is the datatype of validon in both tables?
and secondly - I'm sure the answer to the first question will tell us it is a int or a...
July 7, 2023 at 11:01 am
first thing is to fix the logic - NEVER EVER use FORMAT and then compare its output with something else, especially if it is not a equality compare.
on your first...
July 4, 2023 at 3:41 pm
5.3 million rows is the estimated - the actual is 37k rows
Statistics on columnstore can be a bit tricky as they don't quite work as other tables - but I...
July 4, 2023 at 11:06 am
maybe this but not guaranteed.
drop table if exists #TEMP1;
drop table if exists #TEMP2;
drop table if exists #TEMP3;
select distinct T1.QUOTE_DATE
into #TEMP1
from dbo.OptionsEOD T1
CREATE CLUSTERED INDEX #CI_TEMP1 ON #TEMP1
(QUOTE_DATE
);
select...
July 3, 2023 at 9:27 pm
try the following code.
and then give us the actual explain plan for both this code and your code.
drop table if exists #TEMP1;
drop table if exists #TEMP2;
select distinct...
July 3, 2023 at 4:23 pm
Using a sequence, can a process get a set of 5000 values and then use those values as the PK? WHILE another process performing the same task in parallel...
June 30, 2023 at 7:28 pm
Viewing 15 posts - 451 through 465 (of 2,648 total)