How to Change connection string on the report server unsing command line
09-26-201801:38 AM
Hi every body,
Since Yesterday, am wondering how to change "one line" (using a command line) the configuration of my Power Pi (RS) report on my report server .
I do already know that when we unzip the ;pbix projet file, it lets appear a file called "Connections" that obsvoly contains the conection string to the datas PBI should use . something like ..
When Publishing muy projet to my DEV report server, every thing is fine
But what about Publish it to my PreProd or PROD Servers environnement ?
Of course, it might be possible to change the connection string inside the file and zip again to get a good .pbiw according to the target environnement
But how to push it to the PreProd or Prod Server ? Does any one of you know the MS command line to the Server ?
and even the command to publisk AND change the connection string at teh same time ?? So the projet can be push to the good server AND heritates the good connection String.
I have a write some routine ou .bat files for ours systems supervisers. I cannot tell them to run PowerBiRS and then to save - by hand - the projet on the target Report Server ! we have to many server !
Hi every body,
Since Yesterday, am wondering how to change "one line" (using a command line) the configuration of my Power Pi (RS) report on my report server .
I do already know that when we unzip the ;pbix projet file, it lets appear a file called "Connections" that obsvoly contains the conection string to the datas PBI should use . something like ..
{"Version":1,"Connections":[{"Name":"EntityDataSource","ConnectionString":"Data Source=XXX-WINYZAIAS201\\SQLSRVINFDEV;Initial Catalog=Tabular_power_lines;Cube=\"Energy_Loose\"","ConnectionType":"analysisServicesDatabaseLive"}]}
When Publishing muy projet to my DEV report server, every thing is fine
But what about Publish it to my PreProd or PROD Servers environnement ?
Of course, it might be possible to change the connection string inside the file and zip again to get a good .pbiw according to the target environnement
But how to push it to the PreProd or Prod Server ? Does any one of you know the MS command line to the Server ?
and even the command to publisk AND change the connection string at teh same time ?? So the projet can be push to the good server AND heritates the good connection String.
I have a write some routine ou .bat files for ours systems supervisers. I cannot tell them to run PowerBiRS and then to save - by hand - the projet on the target Report Server ! we have to many server !
thank you so much for you help,
Pedro, Lyon, France