Skip to content

Commit 9078d01

Browse files
committed
Add Using SSMS with PowerBI tip
1 parent c214bb7 commit 9078d01

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

SSMS/SSMS_Tips.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ Most tips works for SSMS higher 2008 but some of them only works for SSMS 2016 a
5555
35. [Vulnerability Assessment in SSMS](#35)
5656
36. [Import Flat File to SQL Wizard](#36)
5757
37. [AutoRecover in SSMS](#37)
58-
38. [Reference](#reference)
58+
38. [View and query PowerBI .pbix files in SSMS](#38)
59+
39. [Reference](#reference)
5960

6061

6162
**Great thanks to**:
@@ -83,6 +84,8 @@ Most tips works for SSMS higher 2008 but some of them only works for SSMS 2016 a
8384
- Louis Davidson ([b](https://www.red-gate.com/simple-talk/author/louis-davidson/) | [t](https://twitter.com/drsql))
8485
- Solomon Rutzky ([b](https://sqlquantumleap.com) | [t](https://twitter.com/srutzky))
8586
- Michelle Haarhues ([b](https://witsociety.wordpress.com/) | [t](https://twitter.com/mhaarhues))
87+
- Christian Wade ([b](https://witsociety.wordpress.com/) | [t](https://twitter.com/_christianWade))
88+
- Kellyn Pot’Vin-Gorman ([b](https://dbakevlar.com/) | [t](https://twitter.com/DBAKevlar))
8689

8790

8891
<a id="1"></a>
@@ -768,6 +771,30 @@ More details [here](https://witsociety.wordpress.com/2019/04/11/autorecover-in-s
768771
![AutoRecover in SSMS](/SSMS/SSMS_Tips/AutoRecover_in_SSMS.png)
769772
770773
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+
![Using SSMS with PowerBI](/SSMS/SSMS_Tips/using_ssms_with_powerbi_01.jpg)
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+
![Using SSMS with PowerBI](/SSMS/SSMS_Tips/using_ssms_with_powerbi_02.jpg)
794+
795+
More details [here](https://dbakevlar.com/2019/03/using-ssms-with-power-bi/)
796+
797+
771798
<a id="reference"></a>
772799
Reference:
773800
- [Free Course: SQL Server Management Studio Shortcuts & Secrets](https://sqlworkbooks.com/course/sql-server-management-studio-shortcuts-secrets/) (by Kendra Little)
44.2 KB
Loading
101 KB
Loading

0 commit comments

Comments
 (0)