Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Want 2 change connection 4m Dev 2 Prod before publishing to Power BI Service, What should I do 4m QE

I have two Microsoft SQL Server database servers named SQLProd1 and SQLDev1.
SQLDev1 contains the same tables as SQLProd1, but only a subset of the data in SQLProd1.
I create a new Power BI Desktop model that uses 120 tables from SQLDev1.
I plan to publish the Power BI file to the Power BI service.
I need to connect the model to the tables in SQLProd1.

The solution must minimize
administrative effort.

What should I do from Query Editor before you publish the model?

1 Configure the Data source settings.
2 Edit the source of each table query.

 

Please can someone explian which is right ans and why?

7 REPLIES 7
Anonymous
Not applicable


@Anonymous wrote:

I have two Microsoft SQL Server database servers named SQLProd1 and SQLDev1.
SQLDev1 contains the same tables as SQLProd1, but only a subset of the data in SQLProd1.
I create a new Power BI Desktop model that uses 120 tables from SQLDev1.
I plan to publish the Power BI file to the Power BI service.
I need to connect the model to the tables in SQLProd1.

The solution must minimize
administrative effort.

What should I do from Query Editor before you publish the model?

1 Configure the Data source settings.
2 Edit the source of each table query.

 

Please can someone explian which is right ans and why?


"Edit the source of each table query" is Right Answer 

Clue: What should you do from "Query Editor" before you publish the model?

parry2k
Super User
Super User

@Anonymous you should use parameters to store sql server information and then use that parameter in your query as part of source, once you are ready to publish, just change the value of parameters and all the queries will point to production server, it will be easier and quicker to switch between environments.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable


@parry2k wrote:

@Anonymousyou should use parameters to store sql server information and then use that parameter in your query as part of source, once you are ready to publish, just change the value of parameters and all the queries will point to production server, it will be easier and quicker to switch between environments.


Thanks for your input. Its helpful.

 

But still I want to know which one is right from given option..? and why?

 

 

@Anonymous I already explained why using parameter is better option, not sure what other question you have.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable


@parry2k wrote:

@AnonymousI already explained why using parameter is better option, not sure what other question you have.


Thanks for your response. I am not challenging your idea. 

Defenetly that is best solution. 

 

But my question was specific and looking for ans from given options. 

 

Other members, please can somebody help me on this.

 

@Anonymous any logical reason why you want to stick to only those 2 options. I'm sure there is rational behind it and would like to know. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable


@parry2k wrote:

@Anonymousany logical reason why you want to stick to only those 2 options. I'm sure there is rational behind it and would like to know. 


We have a process and simply we can't modify existing production reports. We have not yet implemented parameter option and It will take time to implement and test. Looking for quick solution which should be accepted.

 

I hope you are satisfied now:)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.