Viewing 15 posts - 16 through 30 (of 633 total)
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.
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
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:07 pm
April 17, 2024 at 6:36 pm
Why SSRS? Do you need user interaction?
If you don't need user interaction then there are better ways to do this. SSRS is for creating formatted output so I am not...
April 5, 2024 at 6:16 pm
This sounds like more of an asp.net application issue rather than a SQL issue. I would not store links in the database. When you the user clicks the initial page...
April 1, 2024 at 7:23 pm
This is tsql
DROP TABLE IF EXISTS #Roles;
SELECT * INTO #Roles FROM OPENROWSET
(
'MSOLAP',
'Data Source=localhost;Initial Catalog=YourSSASDatabaseName;Provider=MSOLAP.4;Integrated Security=SSPI;Format=Tabular;',
'SELECT * FROM $System.TMSCHEMA_ROLES'
);
DROP TABLE IF EXISTS #RoleMemberships;
SELECT * INTO #RoleMemberships FROM OPENROWSET
(
'MSOLAP',
'Data Source=localhost;Initial Catalog=YourSSASDatabaseName;Provider=MSOLAP.4;Integrated Security=SSPI;Format=Tabular;',
'SELECT...
March 26, 2024 at 7:56 pm
You can issue an MDX query or a TSQL query against a linked server.
https://www.sqlshack.com/linking-relational-databases-with-olap-cube/
March 26, 2024 at 2:50 pm
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
Viewing 15 posts - 16 through 30 (of 633 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy