Viewing 15 posts - 1 through 15 (of 629 total)
This should do it
ON t.RowNumber >= cd.RowNumber AND t.RowNumber < cd.NextRowNumber
Have a great weekend!
January 10, 2025 at 11:55 pm
Actually getting some duplicate CreateDate rows in GroupingIdentifiers 2 and 3 using my sample data.
January 10, 2025 at 11:49 pm
Thanks Scott. Definitely looks good initially.
The row count will be in the hundreds. Let me bounce this against my actual data and see if that brings up any complexities.
January 10, 2025 at 11:11 pm
Thanks Jeff, Here is more realistic data. Won't work when there are more than 5 rows.
DROP TABLE IF EXISTS #Test
CREATE TABLE #Test (RowNumber INT,RowType VARCHAR(10),DelimitedColumn VARCHAR(MAX))
--Should all...
January 10, 2025 at 10:41 pm
Thanks Scott. I suspected this would be CIY-code it yourself. The other approach I considered is not inserting the bad row at all. SSIS has error output which does this....
December 27, 2024 at 4:38 pm
Sounds like you could declare a stored procedure output parameter and set it in your IF statement.
https://www.sqlservertutorial.net/sql-server-stored-procedures/stored-procedure-output-parameters/
Or if you need more flexibility you could use the OUTPUT clause.
https://www.sqlservercentral.com/articles/the-output-clause-for-insert-and-delete-statements
December 17, 2024 at 7:59 pm
Welcome to the wonderful world of linked server performance troubleshooting,
Some will say never use linked servers and look for alternatives. https://www.brentozar.com/archive/2021/07/why-are-linked-server-queries-so-bad/
Others will say they are OK in certain circumstances. I...
October 29, 2024 at 9:46 pm
A pleasure. Let me know if you have further related questions. PBI opens up additional possibilities that you never had with SSRS.
Is there any equivalent in PBI for data...
September 30, 2024 at 6:47 pm
A pleasure. Let me know if you have further related questions. PBI opens up additional possibilities that you never had with SSRS.
Is there any equivalent in PBI for data...
September 30, 2024 at 5:57 pm
I'll guess since you didn't post a way for anyone to post tested code.
Use LEAD to access subsequent data in the current row. Then compare AgentExpDate to the LEAD value...
September 5, 2024 at 10:20 pm
This?
DECLARE @String VARCHAR(MAX) = '(abc.domain.com)'
SELECT @String,SUBSTRING(@String, CHARINDEX('(', @String) + 1, CHARINDEX(')', @String) - CHARINDEX('(', @String) - 1)
July 31, 2024 at 2:48 pm
To get the quarter you can use a calendar table that has the quarter specified for each day(if you have one).
Or something like this.
SELECT
CASE MONTH(GETDATE())
WHEN 1 THEN 'Qtr1'
--etc
WHEN 7 THEN...
July 12, 2024 at 2:30 pm
Provide error message as text masking any identifying information.
June 27, 2024 at 6:12 pm
Yes I was talking about the Tabular Editor product. Better answer would be query MDSchema_Cubes
SELECT * FROM $system.MDSchema_Cubes
The docs look wrong since LAST_SCHEMA_UPDATE and LAST_DATA_UPDATE have the same description.
May 21, 2024 at 2:37 pm
any thoughts on verifying automatically what is running was the last bim versioned?
You can run Tabular Edit with the appropriate permissions to connect to your prod server. Then...
May 14, 2024 at 3:09 pm
Viewing 15 posts - 1 through 15 (of 629 total)