Viewing 15 posts - 706 through 720 (of 13,838 total)
Neat solution, but I disagree with this comment:
it happens often that you need to save a list of single values/parameters that are valid, temporarily or stably, for the whole application.
In...
November 27, 2023 at 11:11 am
It's an ungainly piece of code, but I think it gets the right results.
SELECT ssh.id
,ssh.OrderNumber
,ssh.RelayPoint
...
November 25, 2023 at 11:43 am
Sorry to keep modifying this response. It's taken me a while to formulate a question I am happy with.
In your sample results, we see XN78/980.
The latest row for this combination...
November 23, 2023 at 1:26 pm
Yes it should be possible.
(condition 1) && (condition 2)
November 21, 2023 at 9:28 am
I have a query in mysql I have created a account with test@localhost and i want to access the particular database where I have given access to the db...
November 20, 2023 at 5:21 pm
Sure you can. If you add this WHERE clause to my query, it excludes any rows containing invalid JSON:
WHERE ISJSON(sd.SomeCol) = 1;
If you want to identify the...
November 20, 2023 at 1:38 pm
Why not just make a backup of demo_1 and restore it over the top of demo_2?
November 20, 2023 at 1:32 pm
Something like this?
DROP TABLE IF EXISTS #SomeData;
CREATE TABLE #SomeData
(
SomeCol NVARCHAR(MAX)
);
INSERT #SomeData
(
SomeCol
)
VALUES
('{"changedAttributes":[{"logicalName":"line1","oldValue":"street1","newValue":"street2"},{"logicalName":"city","oldValue":"City1","newValue":"City2"},{"logicalName":"phone","oldValue":"123","newValue":"345"}]}');
SELECT sd.SomeCol,oj2.*
FROM #SomeData sd
CROSS APPLY OPENJSON(sd.SomeCol) WITH (changedAttributes NVARCHAR(MAX)...
November 20, 2023 at 11:53 am
Add a derived column in the dataflow and set its value to the variable. It will be available for mapping.
November 17, 2023 at 11:31 pm
Fed? Brain? I hate to think what you would call me.
November 16, 2023 at 4:51 pm
OK, my point was that if the Code is already a candidate key in a table, why not throw away the Id and make Code the clustered PK? Could give...
November 15, 2023 at 5:37 pm
Do the Id columns in these tables perform any useful function? Based on what you've posted so far, it looks like there's an argument for removing them ... or maybe...
November 15, 2023 at 5:23 pm
A WHILE loop is a really slow way of generating this. Instead, consider using something like this, which does it fast! (Once again, thanks to Jeff Moden for the base...
November 14, 2023 at 11:02 pm
This is likely to be a permissions issue. The user executing the command (which will be the SQL Agent service user, by default) needs appropriate access to all of the...
November 14, 2023 at 2:22 pm
Do you receive any error messages?
November 14, 2023 at 11:25 am
Viewing 15 posts - 706 through 720 (of 13,838 total)