Viewing 15 posts - 1 through 15 (of 2,462 total)
Second time posting this - the first time I included more than one link, which prevents your post from being published.
Great article. I wish there were more articles like this.
Let...
-- Itzik Ben-Gan 2001
August 4, 2026 at 6:33 pm
The problem is when we include more than one link the message just doesn't get posted and you can't retrieve your post. It's infuriating and explains why "SSC Gurus", such...
-- Itzik Ben-Gan 2001
August 4, 2026 at 6:23 pm
"But, sometimes a cursor is actually the simplest approach if it can be performant."
Respectfully - I'm struggling to think of an example of where a cursor is the "simplest approach",...
-- Itzik Ben-Gan 2001
August 4, 2026 at 6:02 pm
I'll do a test post too.
https://substack.com/home/post/p-185215444
-- Itzik Ben-Gan 2001
August 4, 2026 at 5:49 pm
I've been late to the AI party. Everyone I work with uses Copilot, I just starting playing with it - I don't have an opinion yet.
I love Grok, it has...
-- Itzik Ben-Gan 2001
September 7, 2025 at 4:48 pm
Alan... you might want to explain what the bernieML.samd. stuff is.
Thanks Jeff - I fixed my code. I was using my own DB and forgot to remove the...
-- Itzik Ben-Gan 2001
October 31, 2024 at 3:59 pm
UPDATED 10/31/2024
The was an error in my code, I just changed "bernieML.samd.ngrams8K" to "dbo.ngrams8K". I was using code from my own DB (BernieML) with a different schema (samd).
Sorry for...
-- Itzik Ben-Gan 2001
October 30, 2024 at 9:09 pm
There's always MS Data Quality Services (DQS). It allows for data cleansing, matching, de-duplication and an array of related data quality services. It's not easy to use but does...
-- Itzik Ben-Gan 2001
October 30, 2024 at 7:30 pm
For this you can use a "splitter" (AKA "tokenizer" function.)
DECLARE @String VARCHAR(8000) = 'Hello world. #1234 has been replaced by #014521';
SELECT SomeNbr = REPLACE(split.[value],'#','')
FROM STRING_SPLIT(@String,' ') AS...
-- Itzik Ben-Gan 2001
October 24, 2024 at 5:36 pm
Post got submitted twice. Sorry.
-- Itzik Ben-Gan 2001
October 24, 2024 at 5:36 pm
Another problem I’ve seen frequently is the overuse of user-defined functions (UDFs), especially nesting scalar UDFs.
scalar UDFs, nested or not, tend to burn the house down. When used in a...
-- Itzik Ben-Gan 2001
January 17, 2022 at 2:57 pm
Glen - I love this article. Amazing stuff. I read some of it and skimmed the rest but can't wait until I have time to play with your code a...
-- Itzik Ben-Gan 2001
September 7, 2021 at 3:29 pm
Thanks for the replies and sorry for being a Ghost OP.
To me, the above makes sense based on the wording of those metrics and is useful information. Does the above...
-- Itzik Ben-Gan 2001
July 7, 2021 at 9:29 pm
Adi did it like I would. His excellent solution could be simplified as
SELECT t.FamilyID, t.PortionKey, t.GroupID, GeneratorNumber =
...
-- Itzik Ben-Gan 2001
June 9, 2021 at 12:13 am
I would write it using EXISTS instead of INs. It's easier if you use table aliases.
I always use EXISTS instead of IN. Best case - it performs better, worse case...
-- Itzik Ben-Gan 2001
June 8, 2021 at 11:50 pm
Viewing 15 posts - 1 through 15 (of 2,462 total)