Viewing 15 posts - 1,726 through 1,740 (of 2,918 total)
I agree with jcelko here 100%.
If this table structure is not pre-defined for you, I would definitely look at doing it in at least 1st normal form. You will also...
July 15, 2020 at 9:05 pm
Never mind... sounds like the issue is actually not in the DATEADD part, but possibly in the JOIN.
July 15, 2020 at 8:48 pm
for the jobs that run SSIS packages, my approach is to script out the job steps table joined to the jobs table. Something like:
USE [msdb]
GO
SELECT
name, step_name,...
July 15, 2020 at 8:41 pm
I've not done something like this (we don't use SSAS or MDX at our shop), but it sounds like a good use case for CASE:
https://docs.microsoft.com/en-us/sql/mdx/case-statement-mdx?view=sql-server-ver15
July 15, 2020 at 8:24 pm
My thought, based on past experiences, is that you are having memory pressure.
We had an intermittent SSIS package. Most of the time it completed in under an hour (40-ish minutes),...
July 15, 2020 at 7:55 pm
Also Brian, can we think about breaking this string down into various columns such as A[bcd] will be broken down to A,[,b,c,d,].... and then we cross apply A with...
July 15, 2020 at 7:54 pm
When the SSIS package is running on the NEW server, and getting stuck at that 1-5 hour step (and further and pegging CPU and such), how much RAM is free?
My...
July 15, 2020 at 7:22 pm
I think this was answered in another post already, no?
July 15, 2020 at 7:04 pm
String Split won't work here as you have no delimiter on your strings.
Something to add to the TALLY solutions proposed above is that they miss the cases where there is...
July 15, 2020 at 5:57 pm
What application consumes this data? The application that is consuming this data is the application I would use to parse it.
If it is to be consumed in Excel, then I'd...
July 15, 2020 at 5:37 pm
My recommendation is to do this application side still, but if database side is the solution you need, this query should do it:
DECLARE @tmp TABLE
(
[Letters] VARCHAR(25)
);
INSERT INTO...
July 15, 2020 at 5:08 pm
Solution in this case, going back to the UNPIVOT example, basically the same thing, just put more values into the IN statement. In your case replace the FOR [header] IN...
July 15, 2020 at 4:56 pm
Could you provide some DDL for this so we can consume the data and replicate it?
A quick guess here is that you are going to be looking at unpivot or...
July 15, 2020 at 4:36 pm
I think this really depends.
My first step would be to determine what output format is required by the end user. If they require it to be a comma separated list...
July 15, 2020 at 3:16 pm
First - I have not seen this issue before, but we are a fully SQL Server shop where I work without any Oracle boxes.
When you say it works correctly in...
July 14, 2020 at 5:27 pm
Viewing 15 posts - 1,726 through 1,740 (of 2,918 total)