Forum Discussion
vk_pbi
Resolver II
3 years agoPowerShell Script to export Database Connection strings in XMLA
Hi there, I am working on a automation project, where i have a requirement to update the connection strings and credentials via powershell. The process flow would likely to be >Connect SQL Server...
lbendlin
Super User
3 years agoHow is this question related to Power BI? I assume you are aware of the Power BI REST API?
vk_pbi
Resolver II
3 years agoIts not directly related.. Yes I am aware of Power BI Rest Api, but it doesn't work with Onprem report server.
So I need to achieve this without using webservice
- R1k913 years ago
Super User
If powershell is not a requirement maybe you could think to use Tabular Editor and a combiantion of Advanced Scripting and Command Line interface.
I've not tested with your usecase but I did something similar in the past: https://medium.com/p/49e8f4a236f9
- vk_pbi3 years ago
Resolver II
Thanks for your suggestion, but currently I can't use Tabular Editor due to some limitations.
- lbendlin3 years ago
Super User
Run two DMV queries.
select * from $SYSTEM.TMSCHEMA_PARTITIONS
select * from $SYSTEM.TMSCHEMA_EXPRESSIONS