Viewing 15 posts - 1,081 through 1,095 (of 13,841 total)
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
You want to generate a single data item which (somehow) combines both Category and Date, is that correct?
What form should this composite value take?
Something like
XXnnnnnn,
where XX is a code for...
October 21, 2022 at 2:30 pm
Thanks for posting the second link, Frederico. That is a useful technique.
October 20, 2022 at 7:57 am
What exactly do you mean by 'flip'?
Yes, I have sensitive parameters assigned from SSISDB, but I think you must mean something more involved than that.
October 19, 2022 at 7:39 pm
From the top of my head, some pros are as follows:
October 19, 2022 at 3:11 pm
One big con depending on what version you are doing is that in Project mode deployment of individual packages isn't possible. You have to deploy the entire project. This...
October 19, 2022 at 3:04 pm
Keywords indeed! OK, here is one way, which (for ordering purposes) relies on every person having a unique Id column.
DROP TABLE IF EXISTS #SomeData;
CREATE TABLE #SomeData
(
...
October 19, 2022 at 8:43 am
Never seen this function before!

October 19, 2022 at 7:46 am
Having said that, if you can transform your source query so that the results look like this, it would be straightforward.

October 19, 2022 at 7:43 am
Viewing 15 posts - 1,081 through 1,095 (of 13,841 total)