Forum Discussion
Database Name Not Optional (SSAS Tabular Direct Connect)
Note: this question is similar to this (older) thread, but the functionality doesn't seem to be working exactly as designed, preventing me from doing what I need: http://community.powerbi.com/t5/Desktop/Changing-Connection-in-SSAS-Live-mode/m-p/1216#M198
When I do a live connection to a tabular SSAS cube, I am prompted for the Server and Database (Optional). However, if I don't type in a database name, I get told that the server doesn't have any tabular models. I have to type in the database name in order to connect (despite it saying the database name is optional).
So that's fine. I type in the Database name and go on my merry way.
However, later, I want to change the server I'm connecting to (from a development server to a production server). This is where I run into problems.
When I click 'Edit Queries' and type in the server name, there is no box for Database, so I can't type it in even if I want to. And if I try to connect without a database name, it again says there are no tabular models on the server. The Database is the same on both servers, so it's not even changing.
I've tried changing the .pbix file to a .zip, pulling out the Connections file, changing the server name there, then putting the .pbix file back together again, but then the file won't open in Power BI Desktop at all.
Does anyone else have this problem (where the database name is not as optional as claimed)? Is there something I can do to my SSAS server so that it recognizes there are tabular models when I don't put in a database name? Otherwise, how do I change a tabular live connection from one server to another in PBI Desktop given that I can't specify the Database directly when I edit the query?
13 Replies
- pqianMicrosoft Employee
leonardmurphy That is really weird...I'm not aware of such limitations. I can dig further on this.
- pqianMicrosoft Employee
Do you know the AS server version? If you select "Import data ...", do you see a list of databases there? Could the first database be empty by any chance?
- AnonymousNot applicable
leonardmurphy Are the two SSAS instances in different domains? And if so, do you have a AS Gateway installed on that server?
- leonardmurphySkilled Sharer
If I select import data, I am not required to enter a database name. Instead, I am prompted for my credentials. I select windows credentials, and then the Navigator appears. There is only one database on the server in question, but in the Navigator to import data it shows several drill downs under the database.
I can then choose my tables and import.
The servers are all on the same domain, but the enterprise gateway is installed on a different server than either SSAS instance.
SSAS is SQL 2014 Enterprise SP1: 12.0.4100.1
Note: Edited to include image rather than description and add server version. (I wasn't signed in so the upload image option wasn't there when I first replied)
- pqianMicrosoft Employee
leonardmurphy hmmm...that's not what I'm expecting. I was hoping that maybe there is some DB with no model that could possibly explain the part that you can connect by specifying the right DB.
In any case, to unblock your scenario, in the last update (December) we shipped a preview feature to lift the tabular model restriction on AS live connect. You can goto File->Options->Preview Features and enable this. Can you give this a try and see if you can now connect to the server (and maybe post a screenshot of the server under live connect to see if there are any clues)?
- leonardmurphySkilled Sharer
I enabled the preview feature 'Explore live with SQL Server Analysis Services multidimensional models' as well as 'Use KPIs from Power Pivot or SSAS Tabular' - which are the two preview features that related to cubes.
It still shows that there are no tabular models if I type in the server name without specifiying a database.
If I do type in the database name, then this is what I see:
- bojeNew Member
Hi,
I have the exact same problem.
We have been developing a big report in one perspective and want to change to another. This is not possible because we need to enter the database.
Have you found any solution?
- leonardmurphySkilled Sharer
I never did find a solution, but it is server specific - it's only one of my SSAS tabular servers that I can't switch to (or connect to without typing in a database name). Other SSAS tabular servers work just fine, so it is definitely something to do with the SSAS server. I just don't know what the difference is.
It could potentially be Kerberos delegation related, but that's a Pandora's box to open, so I chose not to.
Perhaps submit a frown, and please do update the thread if you learn anything useful? I never frowned.