Viewing 15 posts - 1,081 through 1,095 (of 13,849 total)
The enable_ordinal argument for STRING_SPLIT is not implemented in 2019.
November 2, 2022 at 3:49 pm
Here is one way. It assumes that none of the partner_name columns are NULL – some JOIN tweaking may be required if they are.
DROP TABLE IF EXISTS...
November 2, 2022 at 11:30 am
Jonathan, I'm going to try your suggestion. I don't think it will work because it should be splited after ' - ' always and show me everything after that...
November 2, 2022 at 11:13 am
Using Jonathan's test data, here is the STUFF() version.
WITH cte
AS (SELECT *
FROM
(
...
November 2, 2022 at 11:11 am
Which tools and what sort of data?
October 26, 2022 at 1:47 pm
Reminder... STRING_AGG() wasn't available until 2017. The OP posted in a 2016 forum.
Thanks, Jeff, I should have checked that!
October 25, 2022 at 10:07 am
You also need to install SSDT for VS 2017 (standalone installer).
October 24, 2022 at 3:13 pm
Have you tried using an unambiguous date format?
'2021-11-01 00:00:00.000'is ambiguous withdatetime. Try'2021-11-01T00:00:00.000'or just'20211101'.
Well spotted!
October 24, 2022 at 12:57 pm
Maybe like this:
DROP TABLE IF EXISTS #SomeData;
CREATE TABLE #SomeData
(
Name VARCHAR(50)
,Value VARCHAR(50)
);
INSERT #SomeData
(
Name
,Value
)
VALUES
('A', 'X')
,('A',...
October 24, 2022 at 7:44 am
Without knowing how the underlying tables are structured, it's impossible to provide a coded answer. However, I suspect a combination of STRING_AGG() and GROUP BY should get you there. Some...
October 24, 2022 at 7:39 am
Indeed. I use localhost for my SQL server connections while developing and that is what gets checked in.
After deploying to another server, it is straightforward (once you know what you...
October 22, 2022 at 1:43 pm
I was imprecise with flip. I should have said "change" the server. As there are two choices for me, it's like "flipping" a switch.
Do you mean switching from not...
October 21, 2022 at 3:25 pm
Something like this?
DROP TABLE IF EXISTS #SomeData;
CREATE TABLE #SomeData
(
Category VARCHAR(50)
,SomeDate DATETIME
);
INSERT #SomeData
(
Category
,SomeDate
)
VALUES
('A', '20171231')
,('A',...
October 21, 2022 at 3:11 pm
Viewing 15 posts - 1,081 through 1,095 (of 13,849 total)