You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -768,6 +771,30 @@ More details [here](https://witsociety.wordpress.com/2019/04/11/autorecover-in-s
768
771

769
772
770
773
774
+
<a id="38"></a>
775
+
## View and query PowerBI .pbix files in SSMS
776
+
All Power BI files end with `.pbix`.
777
+
You can make a copy of the file, (because DBA always like to work from copies vs. the originals) then rename the file from `.pbix` to `.zip`.
778
+
You can then unzip the file and see the base components that make up a Power BI report and visuals:
779
+
780
+

781
+
782
+
While the Power BI report is open, you’ll see what is running using the `netstat -b -n` command from the command prompt as an administrator:
783
+
784
+
You’ll notice that `pbidesktop.exe` is port `54125`, with multiple child threads.
785
+
You’ll also notice there is an executable also sourced from the `pbidesktop.exe` process called `msmdsrv.exe`.
786
+
That’s the executable for an Analysis Server. Your data model is being run by trimmed down Analysis Server in Power BI.
787
+
If you have an Analysis Server port, you can connect to it with SSMS using the ID for Power BI Desktop.
788
+
In our example above, the ID is 54125 and as the desktop is running on your PC, it would be your `localhost` for the server name.
789
+
Open up SSMS and update the server type to Analysis Server and I type in the following, using my Active Directory login to connect:
790
+
791
+
You will connect to the trimmed down Analysis Server behind the PBI Desktop report you have running on your screen and have limited interactive options.
792
+
793
+

794
+
795
+
More details [here](https://dbakevlar.com/2019/03/using-ssms-with-power-bi/)
796
+
797
+
771
798
<a id="reference"></a>
772
799
Reference:
773
800
- [Free Course: SQL Server Management Studio Shortcuts & Secrets](https://sqlworkbooks.com/course/sql-server-management-studio-shortcuts-secrets/) (by Kendra Little)
0 commit comments