Viewing 15 posts - 916 through 930 (of 3,480 total)
thanks for the head start... I was curious, so I finished it.
SELECT nm.item,
Name = NU.Item
FROM test T
CROSS APPLY SCRIDB.dbo.DelimitedSplit8K(T.name, ';') NM
CROSS APPLY SCRIDB.dbo.DelimitedSplit8K(T.numbers,...
July 25, 2019 at 7:50 pm
You need to help you. Read the articles Chris posted. Create some tables, try out the different options - LEFT JOIN, EXCEPT, NOT IN.
July 25, 2019 at 2:31 pm
I'd probably send a tweet to @psdbatools and see what happens. or #psdbatools
July 21, 2019 at 11:22 pm
Maybe this will help?
https://social.technet.microsoft.com/wiki/contents/articles/1073.robocopy-and-a-few-examples.aspx
July 21, 2019 at 6:08 pm
There's not enough data to test your query, but this is the general pattern and should work:
use tempdb;
GO
CREATE TABLE #ToGive (
GiverID INT,
NumGifts TINYINT,
GiverName VARCHAR(10),
City VARCHAR(15)
);
GO
INSERT INTO #ToGive...
July 21, 2019 at 3:47 am
So what do you really want to do?
Modify the subscription so it changes when the report is delivered? If so, see the "Schedule" section of this article:
July 19, 2019 at 10:05 pm
Sorry for the silly question, but if you do everything in a stored procedure, what's the difference? Maybe you have a CTE with two pivots in it, and then at...
July 19, 2019 at 4:08 pm
Not totally sure I understand. Can you create two pivots and then join the results on the shared columns?
July 19, 2019 at 3:31 pm
Something like this... I'm not sure my query is 100 percent correct, because I'm not sure what D_ID and E_ID mean.
SELECT D_ID
, E_ID
, Salary
, LAG(Salary, 1) OVER...
July 19, 2019 at 2:24 pm
Can you get the data before it's pivoted, so there are dates in there instead of quarters? Normally in a tabular model, your fact table will have a date or...
July 19, 2019 at 2:13 pm
There's a new cardinality estimator in SQL 2016. Force your query to use the old one. See: https://stackoverflow.com/questions/47215135/facing-performance-issues-in-sql-server-2016-after-migration
July 11, 2019 at 1:24 pm
Sounds like a job for CROSS APPLY.
SELECT e.EquipmentName
, lw.WarrDescription
, lw.StartDate
, lw.EndDate
FROM Equipment e
CROSS APPLY (SELECT TOP 1 StartDate, EndDate, WarrDescription
FROM Warranty...
July 9, 2019 at 4:32 pm
Multiple UNIONs? That's a recipe for a long long wait. Can you post the query?
You can try using UNION ALL between the individual queries instead of UNION. UNION will remove...
July 3, 2019 at 2:23 pm
got CREATE TABLE and INSERT scripts?
That post is nonsensical without them
July 2, 2019 at 6:11 pm
I did the Prerequisite/Co-requisite course thing a long time ago, and asked about it there. So if you look for it, Jeff Moden and someone else answered and came up...
June 29, 2019 at 7:49 pm
Viewing 15 posts - 916 through 930 (of 3,480 total)