Viewing 15 posts - 31 through 45 (of 2,462 total)
Just as a side note, depending on how often your columns are updated/modified, you can always split the string ahead of time using a permanent tally table like this:
-- Itzik Ben-Gan 2001
August 3, 2020 at 1:51 am
I'm not seeing any code attached to your last post. What code are you talking about being "attached"?

Grrr...
/*********************************** PART #1...
-- Itzik Ben-Gan 2001
August 1, 2020 at 1:51 am
UPDATED 20200803 at 9:30PM
Ok, 4 1/2 years later I have a something really good to show!
This code is from one of many articles in various phases of completion which I'll...
-- Itzik Ben-Gan 2001
July 31, 2020 at 7:35 pm
Great article Steve. Really informative.
-- Itzik Ben-Gan 2001
July 27, 2020 at 4:34 pm
I've just added CLR Regex Functions to our SQL Servers.
I'm trying to replace some of our less efficient string parsing TSQL functions with the new .Net CLR Regex Functions.
For things...
-- Itzik Ben-Gan 2001
February 12, 2020 at 12:58 am
If anyone is interested in a rather interesting problem has a look at this: https://www.sqlservercentral.com/forums/topic/table-function-returns-varying-number-of-records-for-an-update-statement
I gave up.
-- Itzik Ben-Gan 2001
December 4, 2019 at 7:00 pm
I'm really curios to what is happening internally for the varying set of records that get updated.
This is one of the more interesting problems I've seen in a while on...
-- Itzik Ben-Gan 2001
December 4, 2019 at 6:56 pm
To quote Ned Flanders, "Wow! As melon scratchers go, that's a honey doodle."
I can confirm that I see the same issue and racked my brain trying to figure out how...
-- Itzik Ben-Gan 2001
December 2, 2019 at 10:09 pm
Grab a copy of NGrams8k and you can do this:
Declare @Temp Table(SomeId INT IDENTITY, [Data] VarChar(8000))
Insert @Temp ([Data])
Values('hello my name is john 07999999999 smith 07888888888...
-- Itzik Ben-Gan 2001
November 21, 2019 at 3:29 pm
Grab a copy of NGrams8k and you can do this:
Declare @Temp Table(SomeId INT IDENTITY, [Data] VarChar(8000))
Insert @Temp ([Data])
Values('hello my name is john 07999999999 smith 07888888888 this last...
-- Itzik Ben-Gan 2001
November 21, 2019 at 2:54 pm
This is an inner join, and is an intersection of the data in the tables. This is shown in the image below.
Careful here. An Inner Join and an Intersection are...
-- Itzik Ben-Gan 2001
November 19, 2019 at 1:24 pm
The order of processing is as follows:
FROM
WHERE
GROUP BY
HAVING
SELECT
ORDER BY
LIMIT
LIMIT is MySQL not SQL Server. The last three things to be processed are : SELECT then TOP / OFFSET then ORDER...
-- Itzik Ben-Gan 2001
November 8, 2019 at 7:41 pm
I do not understand the benefit of using a 'cross join' versus an 'inner join' on the sql above pointing to the same table?
There is no "benefit", it's a design...
-- Itzik Ben-Gan 2001
November 4, 2019 at 11:36 pm
This is good information. My question now is, why even use a UDF as a source for a report? Why not just have the report user access a view...
-- Itzik Ben-Gan 2001
October 29, 2019 at 2:07 pm
First, as a general rule: when considering user defined functions (UDFs) the most important thing is if the function is inline or not. If performance is important, the only viable...
-- Itzik Ben-Gan 2001
October 28, 2019 at 8:21 pm
Viewing 15 posts - 31 through 45 (of 2,462 total)