Viewing 15 posts - 2,506 through 2,520 (of 59,086 total)
That sounds good and right, Jonathan. I tell people that good splitters shouldn't make any assumptions and that it should return EVERYTHING that's between the delimiters, an empty string if...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 13, 2022 at 12:36 am
@Webmaster finally responded. It turns out that Steve Jones is no longer the "watcher" there. I got a hold of Steve through his email and he said they'd notify the...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 13, 2022 at 12:32 am
Actually, they stopped working on or about Oct 26th and, yes... they're still broken.
I did finally get an acknowledgement for @WebMaster on this site (Steve is no longer the watcher...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 13, 2022 at 12:23 am
I'm no expert on the subject because we have an "Infrastructure Group" where I work but I wonder if a simple "Clustered Server" would do the trick here. They have...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 13, 2022 at 12:21 am
The reason why it produces an error is because the first thing to qualify in the CASE expression is an INTEGER and so the resulting column formed by the CASE...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 13, 2022 at 12:02 am
What happened to the question?
They stored it in an SQL_Variant with the wrong base type. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
November 12, 2022 at 1:44 am
We have a reporting database. It has 2 schemas... Build1 and Build2. We don't mess around with triggers or the schemas. We created a 2 synonyms for each table... 1...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 12, 2022 at 1:43 am
I recently had reason to revisit this article and I found a bug in the code. It does not preserve leading spaces in the individual elements. If an element is...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 11, 2022 at 10:30 pm
Not that I've ever heard of.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 11, 2022 at 8:59 pm
could you send a sample of that code?
Thx.
How many characters are in the column that you want to split? I ask because, since your column started off as NTEXT,...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 11, 2022 at 8:45 pm
Duplicate post deleted...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 11, 2022 at 8:43 pm
Sample data in field:
PartNbr|#@|Machine|#@| ttxx23|#@|plc1|#@| ttxx24|#@|plc2
So it looks like PartNbr|#@|Machine| -- these are the fields Then | ttxx23| -- when it sees a space data starts
partnbr Machine ttxx23 ...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 11, 2022 at 6:17 pm
Des Norton has the right idea but it can be simplified a bit. You can replace the GETDATE() with a variable in the following, in case you want to turn...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 11, 2022 at 5:24 pm
select cast(replace(cast(body as nvarchar(max)),'???','?') as ntext) from lookuptable2 where description like '???%'
I used this template and can see that it did indeed did do the replace, but how do...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 11, 2022 at 4:23 pm
do not use the native string_split - slow and does not return the ordinal of the strings.
Funny thing there... I've never actually tested it for performance because I never...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 11, 2022 at 4:16 pm
Viewing 15 posts - 2,506 through 2,520 (of 59,086 total)