Viewing 15 posts - 16 through 30 (of 61 total)
Hopefully 10 seconds few times a day is a problem on you server!!!!
December 19, 2022 at 8:52 pm
No, a solution like this is hopefully only on few rows - as mentioned earlier, else change the way to solve the problem. And if my solution runs in 10...
December 19, 2022 at 8:43 pm
And if you want the seven last?
December 19, 2022 at 8:30 pm
I will stop here! The focus on which solutions to use is the big difference. My focus will always be a correct and a general solutions. Unless performance is important,...
December 19, 2022 at 7:41 pm
20 core (8 + 8 + 4) and 64GB RAM, 2 SSD disk.
December 19, 2022 at 6:13 pm
No, because I do not have a lot of users on my Laptop! But the scripts shows that even when executing with only 3 users, data are not read in...
December 19, 2022 at 5:03 pm
If the optimizer choose to use tempdb, data is not necessary read in the same order as inserted - the principle of using a heap. In this situation with few...
December 19, 2022 at 10:58 am
This is not correct! It is right that there is no sort, but no sort is not the same as data is in the same order as in the string....
December 19, 2022 at 4:21 am
And we can see earlier in this post how some people use tally from a function found on the net, because they have learned, that this is the only and...
December 18, 2022 at 10:13 pm
AC Roberts: you are making one of the classic mistakes!!! You just use a function without testing for a correct solution. ORDER BY (SELECT NULL) does not guarantee order. So...
December 18, 2022 at 5:00 pm
Most people are still using a version earlier than 2022! So just using the 2022 version to solve this problem is not the right solution - for some developers it...
December 18, 2022 at 9:08 am
As expected!!!! On my desk it takes only 14 seconds to process 131,000 rows. Hardly not a statement that will be executed several times every minute or several times every...
December 16, 2022 at 5:35 pm
-- Finding second last - problems if this should be more generel
DECLARE @Tmp TABLE
(
SerialNoVARCHAR (500)
);
INSERT INTO @Tmp VALUES
('1232132|2343345435|34543534534534|3344562534'),
('23243|23423432432|34543534534235|3344562534'),
('23243|23|42343|2432|A3454335B|3344562534'),
('23|24|3|2342|3432432|X34545Y|3344562534');
WITH ReverseSN
AS
(
SELECT REVERSE (SerialNo) AS SN
FROM @Tmp
),
SecondLast
AS
(
SELECT
CHARINDEX ('|',...
December 16, 2022 at 10:12 am
But the except version gives a different result than join, if the table Parts have rows - PartID and FeatureName - that does not exist in PartsDetails. And from the...
June 20, 2022 at 9:49 am
To clarify. Only columns used in view are affected by schemabound. You can still add, delete or modify the other columns.
USE master;
DROP DATABASE IF EXISTS TestDB;
GO
CREATE DATABASE...
March 11, 2021 at 10:02 am
Viewing 15 posts - 16 through 30 (of 61 total)