Quantcast
Channel: SQL Server Analysis Services forum
Viewing all 14337 articles
Browse latest View live

What is the namespace of SQL Server 2017 database?

$
0
0

What is the namespace of Azure Analysis Services / SQL Server 2017 (1400)?

So i have the following script that returns connection string of databases under server

Import-ModuleSqlServer#SSAS 1103 
$oldAS =New-ObjectMicrosoft.AnalysisServices.Server
$oldAS.connect("server1")

foreach ($db in $oldAS.Databases){#$dbName = $db.NameWrite-Host $db.Name-Fore green
  $db.DataSources|ForEach-Object{$_.ConnectionString}}#SSAS 1200-1400 
$AS = new-ObjectMicrosoft.AnalysisServices.Tabular.Server
$AS.Connect("server1")

foreach ($dbt in $AS.Databases){
  $dbName = $dbt.Name
  $dbName
  $dbt.model.datasources[0].ConnectionString}

the first connection/namespace is used for compatibility levels 1103 the 2nd connection/namespace Microsoft.AnalysisServices.Tabular.Server is used for db's 1200-1400

however, we recently got databases that are 1400 but have a completely different format of connection string. the connection seems to be in JSON, even when looking at it from properties, compared to the traditional long connection string

i.e.

UserId=;DataSource=;PersistSecurityInfo=True

VS

json

any databases with a data source of that format in the picture is not displaying back

is there another namespace used to get this type of connection?


An unexpected exception occurred.

$
0
0

Hi,

I am a noob on this so if i miss something,it would be helpful if you guys add that .

I have configured HTTP Access to Analysis Services but while accessing that in internet explorer it is throwing the below error

----------------------------------------------------------------------------------------------------------------------------------

The website cannot display the page

 HTTP 500 
Most likely causes:
•The website is under maintenance.
•The website has a programming error.
 ----------------------------------------------------------------------------------------------------------------------------------

While connecting it thought ssms

 ----------------------------------------------------------------------------------------------------------------------------------

Cannot connect to http://XXXXXXXXX\OLAP/msmdpump.dll.

Internal error: An unexpected exception occurred. (Unknown)

 ----------------------------------------------------------------------------------------------------------------------------------

I have checked the event log and found the below error.

 ----------------------------------------------------------------------------------------------------------------------------------

The description for Event ID 22 from source MSOLAP ISAPI Extension: \\?\C:\inetpub\wwwroot\OLAP\msmdpump.dll cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

Internal error: An unexpected exception occurred.

 ----------------------------------------------------------------------------------------------------------------------------------

I have some post but i didn't get anything.Any help on this will be appreciated.

Regards

Scope statement with comparing but doesn't display on Dim

$
0
0

I have a Scope statement that I'm trying to compare a measure value from 2 different dim members. 

Like

Scope(Descendants([Scenario].[Scenario Name].&[Curr Fcst vs Previous Fcst],,Self_and_after), [Measures].[Value]);      
This = 
     sum([Scenario].[Scenario Name].&[Jan Fcst], [Measures].[Value]) 
-
     sum([Scenario].[Scenario Name].&[Feb Fcst], [Measures].[Value])
     ;      
end scope; 

My issue is the Scenario Currt Fcst vs Previous Fcst doesn't display when I pivot on Scenario Name member and "Value - Game"



But if I browse the Scenario dim, I can see Curr Fcst vs Previous Fcst as a member of that dim. 

Any ideas?

I know this can be done as we have another cube that scope statement is doing a comparison on dim members and that scope member doesn't have rows tied to a fact table. 

SSAS Error: method not found: 'Boolean Microsoft.AnalysisServices.AdomdConnection StringBuilder.Is Azure()

$
0
0

Hi,

When I execute an SSIS package that updates an SSAS Tabular Model via Visual Studio 2017 everything is fine.

When I run the same package using SQL Server 2016 Execute Package Utility I get this error:

Error: method not found: 'Boolean Microsoft.AnalysisServices.AdomdConnection StringBuilder.Is Azure()

This all started after I upgraded VS from 2015 Pro to 2017 Pro. I get the same error on my personal PC running Windows 10 and on the server running Win Server 2012.

Thanks!

Need to understand the scope script

$
0
0

Hi All,

I have scope script and can someone explain me what it is doing.


SCOPE (
        [- Scenario].[Scenario].&[FYF] 
      );   
THIS = (
          ANCESTOR(
                      [- Time].[Time Hierarchy].CURRENTMEMBER
                    , [- Time].[Time Hierarchy].[Year]
                  )
          , [- Scenario].[Scenario].&[CYDF]
        ); 
END SCOPE; 

SCOPE (
[- Scenario].[Scenario].&[FYF]
);  
THIS = (
ANCESTOR([- Time].[Time Hierarchy].CURRENTMEMBER
, [- Time].[Time Hierarchy].[Year])
, [- Scenario].[Scenario].&[FOR]
, [- Forecast Version].[Forecast Version].CURRENTMEMBER
)
+
(
[- Scenario].[Scenario].&[CYYA],
[- Time].[Time Hierarchy].CURRENTMEMBER.PREVMEMBER
);  
END SCOPE;  

MDX Query results into a Netezza table

$
0
0

Hi all,

I am not from SSAS background. We are trying to automate a process where we are currently switching multiple filters on excel sheets that are connected to SSAS cubes and do a visual comparison against the data on a Netezza table. Basically, we are validating the results of cubes with the data on Netezza table.

As part of this, we created MDX queries to pull data based on specific filters that we need from cubes. Can we automatically call/execute these MDX queries via bash or Informatica (only ETL tool that we have) and save the results to a csv or a table? Please ignore my zero knowledge SQL Server technologies and appreciate any guidance in this regards.

Thank you!

SSAS Multidimensional - DMV retention of records

$
0
0

Hi Folks,

             I am working on getting a usage report of measures from a SSAS multidimensional model. I am querying the DMVs and I want to know how many days of record does the DMV store. Does it store the record since the last time the ANalysis service was restarted? If yes, how can I find out the last time analysis service was restarted without logging into the server and if the answer is no, then where is the setting to find out the retention period of DMVs for SSAS monitoring.

Happy Friday!

John


Query Multiple OLAPS with Calculated Measures then Join to other OLAP Queries based off Main query Resultset

$
0
0

Good day, I need help please.

A Business user has 5 cubes with 10 sheets filtered differently with a main sheet Joining these multiple sheets & cubes together using Lookups

I am not too clued up on returning the results in sql 

1. I want to query the 5 cubes and replicate the 10 sheets in SSIS and store in sql tables

2. How would I filter the result of cube1/sheet1 with cube2/sheet2, probably write to table then use sql - other options?

3. would sql be able to return calculated measures accurately as it would be at runtime of OLAP calculated measure

4. with excel as cube presentation, is there a way I can get the MDX used to create the sheets

Example: Sheet1 with specific dimension filters & data grain > insert into sql table. Sheet2 query cube & store results in sql, I will have a main table/query where Sheet2 table rows will be joined/filtered based off Sheet1 table results

I need to do this in sql, so I probably will setup LinkedServers.

Any ideas and examples please

Regards

 




SSAS DYNAMIC LEVEL SECURITY

$
0
0

Hi ALL,

I need some help or tutorial in implementing a dynamic Level security

Any tutorial doc is welcome

Thanks

PC


Flattern Hierarchy into one column calling through t-sql

$
0
0

Hello every one,

I have a problem when i called a mdx query through t-sql (OPENQUERY), then it wont get flattened. I need the hierarchy in one column. 


I know it can be done through dbpropmsmdflattened2 and ado.net. But i want to do it in t-sql.

Any leads and help will be much appreciated.

Thanks.

 

Who will be announced as the next SQL Server Analysis Services Guru? Read more about March 2019 competition!

$
0
0


What is TechNet Guru Competition?

Each month the TechNet Wiki council organizes a contest of the best articles posted that month. This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated blog post that will be published in Microsoft Wiki Ninjas blog, a tweet from the Wiki Ninjas Twitter account, links will be published at Microsoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in March 2019 and must be in English. However, the original blog or forum content can be from beforeMarch 2019.

Come and see who is making waves in all your favorite technologies. Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discusse advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNetWiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but recommended) Add a link to your article at the TechNetWiki group on Facebook. The group is very active and people love to help, you can get feedback and even direct improvements in the article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official MicrosoftTechNet Wiki groups on facebook. Read More about TechNet Guru Awards.

If you win, people will sing your praises online and your name will be raised as Guru of the Month.


PS: Above top banner came from Rajeesh Menoth.

Dave Rendon - wikiazure

Cube measure returning (null) values when sliced with dimension

$
0
0
Hi 

I have one dimension and a fact table in my cube. I am using the key column in my data source view and the same key column I have used in Dimension usage tab with "Regular" relationship. I have created calculated measure and trying to slice it with the dimension mapped with the key column mentioned above. I am getting (null) values in the cube results when I drag the measure and the dimension that is mapped in the "Dimension Usage" Tab. 

Please help in indentifying the root cause why my measure is displaying (null) values though I am getting the results when I run the query in the database. 

Thanks,

Error when processing tabular model Azure Analysis Services

$
0
0

I have next error after processing my tabular model :

The DDL JSON request failed with the following error: Failed to execute XMLA. Error returned: 'An unexpected error has occurred.
The exception was triggered by the IDbCommand interface.
The exception was triggered by the IDbCommand interface.
The exception was triggered by the IDbCommand interface.
The exception was triggered by the IDbCommand interface.
The exception was triggered by the IDbCommand interface.
The exception was triggered by the IDataReader interface.
The exception was triggered by the IDbCommand interface.'..

Technical Details:
RootActivityId: 2404cde3-86fb-471a-b517-5a90470897c6
Date (UTC): 3/4/2019 10:59:16 AM
  0: PFError::SetLastError() line 2160 + 0x0 (sql\picasso\engine\src\pf\eh\pferror.cpp)
  1: PFSetLastError() line 2918 + 0x0 (sql\picasso\engine\src\pf\eh\pferror.cpp)
  2: PFSetLastErrorExTag() line 3474 + 0x27 (sql\picasso\engine\src\pf\eh\pferror.cpp)
  3: 0x00007FFE500F9551 (symbolic name unavailable)

This error occurs in different places of model processing: sometimes in the beginning, sometimes after processing of a part of the model.

When I recreate model from the previous one script, it is processed without error, but in several days the same issue returns.

Thank you in advance for any helping idea.


SSAS Tabular 2017 - adding a source column to existing model

$
0
0

This seems very trivial, but the UI is not responding when I try and edit the table properties of an existing 1400 model table that references a SQL view to include an additional column.

I am able to go into the table editor, see the new column in the preview, validate the query in the editor, and then when I click OK it SSDT just seems to freeze up and not respond. The table editor is greyed out / disabled and I basically have to End Task on Visual Studio.

I tried to also switch the table in the model to reference a new view, but same behavior.

So how am I supposed to be able to update an existing table to include a new column in the source?

I found this post, but this is in regards to the preview not working. That is not the case here, I see the column, just can't get the the table editor process to take and close out.

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/93538eb2-68d1-43d9-8470-8fab96d16160/tabular-2017-adding-a-source-column-to-existing-model?forum=sqlanalysisservices

I am using:

Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework

Version 4.7.02556

SQL Server Analysis Services   14.0.1016.232

Microsoft SQL Server Analysis Services Designer 

Version 14.0.1016.232

SQL Server Data Tools   14.0.61712.050

Microsoft SQL Server Data Tools

And the model is a 1400 version using the Tabular Model Explorer.

Thoughts?

I really don't want to delete the table and have to try and add it back in, we have already cleaned up the table names and have existing measures. I don't see any other way around it though right now.

One solution that was able to work, but definitely hack. Add the new column to the Code View of the Model.bim file. Table Editor method does not currently work and just causes us to have to End Task on Visual Studio.


Dan English's BI Blog

server

$
0
0
unable to establish connection to sql server, how to fix the erro ,continuously this error happaning 

SQL Server Analysis Services roles issue

$
0
0

I have this issue:

I have one user assigned in 2 different roles: Read_PMs. This role is to see projects that the user owns.

 -Dimension data section

                 -cube code (filter)

                   All

                      * AA

                      * BB

                      * CC

                      * ...

                      * II

AA, BB, ... are cube codes.   All the cube codes are marked in the checkbox. This means that the user can see their own projects if they are in any of those cube code.

*Read_PM_II:

This role has the following restriction:

-Dimension data section

                 -cube code (filter)

                   All

                      AA

                      BB

                      CC

                      ...

                    * II

Only the checkbox for the cube code II is marked

Suppose that a user that is in the Read_PM role can only see information related to the cube code AA.

Also suppose that user is in Read_PM_II.

It would be expected that in the end only visualize cube code data in AA and in II.

But it is not like that.

The user is viewing data from AA, BB, CC, II.

The problem occurs because:

Read_PM has all the selected cube codes so that the user can see their own projects in any of these cube codes.
The user is in another role (Read_PM_II) the restriction is combined and information is seen in all the cube codes

Does anyone know how to correct this problem?

VS2015 Pro refresh woes when updating model

$
0
0

hi folks,
I've started working again in SSAS2016 (after previously having no issues w/ development in SSAS2012/2014), and it seems the IDE is having problems refreshing (to reflect the updated structures) after renaming a column, a hierarchy name, creating a table relationship or hiding a column from client tools.  It seems the VS 2015 IDE is not refreshing at all, my only option being to close the project and restart it.  Sometimes even getting  "object reference not set to an instance of an object"

First, I was working with Visual Studio 2015 Shell, Version 14.0.23107.0 D14REL,  then I also installed Visual Studio Pro 2015 14.0.25431.01 Update 3 -- to no avail.   I have SSAS2016 13.0.5081.1.

When working with VS2017 SSDT, I am getting at the top:  "Extension 'Microsoft Analysis Services Projects 2.7', likely caused xx seconds of unresponsiveness, Disabling it may improve your experience"  along with all the same IDE refresh issues above.

Are there any workarounds to get a better, more consistent IDE experience?  or is it the very reason why developers are preferring the Tabular Editor 2.8 instead?    I kind of like the Excel grid/matrix view in VS where I can group the measures in logical areas, but otherwise, I have no strong feelings why I should keep using VS for SSAS development, if all these issues exist and cannot be solved.

thanks much for any feedback,

Cos


TBBmalloc

$
0
0

Issue: TBBmalloc: skip allocation functions replacement in ucrtbase.dll: unknown prologue for function _aligned_msize

Background: While i am trying to execute a command (which works properly from cmd line) from a jenkins freestyle job or pipeline job, i am facing this issue. Could you please help me with this issue?

Visual Studio 2010, Windows 10, 64 bit.


MDX Expression to filter multiple dimensions

$
0
0

Hi, I am new to MDX, has built some calculated measures which are pretty much straight forward.

Currently, I  am working on a new calculated measure using existing measures and dimensions. 

Here are the requirements, Program UV is an existing measure, Referrer Domain, Tracking Code, Content Type are dimensions.

Program UVs that fit ANY of the following criteria:                                                                

- Referrer Domain Description equals "v9"                                                                      

- Tracking Code Type equals "v6"            
- Tracking Code Source equals "v1"                                                                                                

-Tracking Code Source equals "v2"                                                                                        

- Tracking Code Source equals "v3"                                                                                              

- Tracking Code Source equals "v4"    
- Tracking Code Source equals "v5"                                                                                    

- prop4/evar4 (Content Type) equals "v7"   

And EXCLUDE any UVs that fit the following criteria :                                                                                      

- Tracking Code Type equals "v8"     

SQL pseudo code:


SELECT COUNT(Program UV) FROM A
WHERE 
(
trackingcodesource = 'v1'
OR trackingcodesource = 'v2'
OR trackingcodesource = 'v3'
OR trackingcodesource = 'v4'
OR trackingcodesource = 'v5'
OR TrackingCodeType ='v6'
OR [Content Type] ='v7'
OR ReferrerDomainDescription = 'v9'
)
AND TrackingCodeType NOT IN ('v8')


Tried using cross join between dimensions, it works only if I use two hierarchies, any thing more than two it fails. 

Please help.

Tabular Model 2015 - how to restrict access of a table to a role

$
0
0

Hello Friends,

I have a tabular model  2015 version. It has multiple roles  defined. I have created a table and   i want to give its read rights to only one role. How to restrict this.

Right now, all the roles can view this  table/data. 

Tabular 2017 has this features which can easily implement this in the design mode as well as JSON code mode for the role. But how can i achieve this in Tabular 2015.

Thanks,

Avhilash.

Viewing all 14337 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>