Viewing 15 posts - 16 through 30 (of 623 total)
This?
SELECT * FROM $System.TMSCHEMA_ROLES
SELECT * FROM #TMSCHEMA_ROLE_MEMBERSHIPS
March 22, 2024 at 5:17 pm
Are there any performance considerations or other pros/cons in using EXEC at Linked server vs. OPENQUERY?
Example: EXEC MyLinkedServer.MyDatabase.dbo.sp_executesql @SQL
March 18, 2024 at 6:26 pm
Good point. I have a composite primary key comprised of 3 INT columns.
Maybe.
CASE WHEN SampleType = 1 THEN 0 ELSE PK1 + PK2 + PK3 END
Although I guess the 3...
March 13, 2024 at 3:16 pm
Thanks for all the solutions. I'll adapt to my actual DDL and report back If I uncover anything notable.
March 13, 2024 at 2:41 pm
This seems to work but I somehow doubt it will perform any better.
SELECT
DISTINCT
Color,SampleType,
SUM(SampleValue)OVER(PARTITION BY CASE WHEN SampleType = 1 THEN Color ELSE CONVERT(VARCHAR(MAX),RowNum) END) AS SampleValue
FROM
(
SELECT ...
March 12, 2024 at 11:27 pm
Try
SUM(IIF(SampleType = 1, SampleValue,0))
Like this?
SELECT Color,SampleType,
SUM(IIF(SampleType = 1, SampleValue,0))
FROM #SampleData
GROUP BY
Color,SampleType
March 12, 2024 at 11:22 pm
It looks like RefreshedTime FROM $System.TMSCHEMA_PARTITIONS will not update when there is a processing error.
So by snapshotting RefreshedTime pre-processing and comparing to RefreshedTime post-processing you should see objects that did...
March 11, 2024 at 6:57 pm
I believe that is the limitation of an Excel import. Try saving your file as a csv and then import as a flat file.
February 27, 2024 at 4:58 pm
thanks, does anybody have access to enterprise? The reason i ask is that there was a time when you had to use a backdoor thru multidimensional to achieve this...
February 21, 2024 at 6:53 pm
Thanks for the links Jeff. I am going to put PIVOT in the 'do not use' receptacle where it can hang out with MERGE. 🙂
January 31, 2024 at 12:00 am
Thank you both. Moving away from PIVOT and using the conditional aggregation method clearly gives me more flexibility to solve the problem and also seems to be performing better.
January 29, 2024 at 7:00 pm
Can you contact the mail administrator? Intermittent mail failures can happen if there is smtp load balancing going on and you get sent to a mail server that is having...
January 20, 2024 at 12:10 am
Have you seen these links?
https://dba.stackexchange.com/questions/200367/can-ssrs-used-to-update-or-modify-data-tables
https://stackoverflow.com/questions/38583661/can-i-modify-data-by-using-ssrs
Sounds like you want a CRUD application.
CREATE means adding or inserting rows into a table.
READ means selecting (retrieving) rows from a table.
UPDATE means modifying...
January 19, 2024 at 8:11 pm
How are you issuing the processing command? Are you using a SQL Server job with Type: SQL Services Analysis Services Command?
I dimly recall that error but I haven't seen it...
November 28, 2023 at 9:35 pm
Yes, adding a date filter to my where clause seems to create a new plan causing the conversion error.
The Convert to VARCHAR seems reliable but imposes a performance penalty.
A better...
November 2, 2023 at 3:28 pm
Viewing 15 posts - 16 through 30 (of 623 total)