Viewing 15 posts - 676 through 690 (of 13,877 total)
Here is the STRING_SPLIT version
SELECT
jn.Id
, cid = MAX (REPLACE (IIF(c2.ordinal = 3, c2.value, ''), 'cid:', ''))
, Id = MAX...
January 25, 2024 at 9:56 am
Obviously, this relies on Jeff Moden's splitter, but as you're on 2022, you can also use the native string_split() function.
January 25, 2024 at 9:20 am
I've done the first few for you. You should be able to add the others using similar logic.
DROP TABLE IF EXISTS #JSONish;
CREATE TABLE #JSONish
(
...
January 25, 2024 at 9:17 am
So, you're looking to insert a row with a RefNum as the next numeric number? One straightforward method, as suggested in the forum, is to grab the MAX(RefNum) into...
January 24, 2024 at 1:05 pm
The real key here is... are people going to carry you down the hall on their shoulders if you make any changes here?
In a coffin?
A bit harsh!
January 23, 2024 at 3:33 pm
Many thanks Brain. I totally forgot about creating a variable to store the value π€¦π»ββοΈ.
Despite his clever responses, I don't think he's called Brain π
January 23, 2024 at 3:30 pm
Mr Brian Gale is correct, I saw no notification. Here is a possible solution β it relies in integer division:
DROP TABLE IF EXISTS #temptable;
CREATE TABLE #temptable
(
...
January 23, 2024 at 2:57 pm
Can you please complete your question for desired results after
set @setValue=3
?
January 23, 2024 at 9:19 am
i actually wrote this article. Is there any issueΒ with this?
It sounds like it was generated by ChatGPT or similar β and there would be an issue if that...
January 22, 2024 at 5:00 pm
Something like this, perhaps?
SELECT si.logdate
,srv01 = MAX (IIF(si.srvname = 'srv01', si.queueinfo, NULL))
,srv02 = MAX (IIF(si.srvname...
January 22, 2024 at 11:56 am
Did you actually create this article, or was it AI-generated?
January 22, 2024 at 9:44 am
I think it's because MS is forcing users to adopt TLS1.2. I had similar problems a few months ago.
January 21, 2024 at 4:23 pm
Thank you very much for your responses.
Would you happen to know which system variable shows which proc executed? That is the main issue.
If you mean within the proc itself,...
January 18, 2024 at 6:36 pm
Nice. Thanks, Jeff, for reminding me that TRIM() could remove more than just beginning and trailing space characters
January 18, 2024 at 8:47 am
You mean, like this?
https://www.sqlshack.com/python-scripts-to-format-data-in-microsoft-excel/
Looks like it will work, but I haven't done it. If you do make it work, please post back here, as I'm sure others would be...
January 17, 2024 at 4:55 pm
Viewing 15 posts - 676 through 690 (of 13,877 total)