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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
vinaypugalia
Resolver I
Resolver I

Change the data source from on premise SQL Server to SQL Azure | What should be taken care of?

Hello,

 

I have developed Power BI reports using Local SQL Server and now the client wants to move the database to SQL Azure.

Can someone please guide what care should be taken for this move and what will be the impact on my existing visuals from this?

 

Thanks,

Vinay

1 ACCEPTED SOLUTION

Hi @vinaypugalia,

 

Sorry for the late response.

 

1.The generally followed way to change the datasource from on-premise SQL to SQL Azure in Power BI.

 

The way suggested in my original post is general method to change data source. We need to change it in Power BI Desktop. We can open Advanced Editor in Query Editor, you will see the connection information like below:

 

q2.PNG

 

You can replace this with Azure SQL connection information. You can create a new report, get data from the Azure SQL database, copy this information from Advanced Editor then replace the original report connection information.


2.What will be the impact of this change on my measures & visuals?

 

If the Azure database content is the same as original database, the difference is just the move to Azure. It will not affect measures and visuals as data are not changed.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-qiuyu-msft
Community Support
Community Support

Hi @vinaypugalia,

 

As we are not able to change the data source in service directly, if you already publish the report to Power BI service before move the database to Azure, we need to change the data source in Power BI desktop then republish the report. Also we can no longer connect to Azure SQL Database directly from the Power BI service.

 

After republish, we need to go to the dataset settings, set the credential for the dataset connect to the Azure database. My test scenario is connect to Azure SQL database in DirectQuery mode.

 

q1.PNG

 

Reference:
Azure SQL Database with DirectQuery

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for sharing this information.

 

Also, can you please let me know the following - 

  1. The generally followed way to change the datasource from on-premise SQL to SQL Azure in Power BI.
  2. What will be the impact of this change on my measures & visuals?

Thanks!

Hi @vinaypugalia,

 

Sorry for the late response.

 

1.The generally followed way to change the datasource from on-premise SQL to SQL Azure in Power BI.

 

The way suggested in my original post is general method to change data source. We need to change it in Power BI Desktop. We can open Advanced Editor in Query Editor, you will see the connection information like below:

 

q2.PNG

 

You can replace this with Azure SQL connection information. You can create a new report, get data from the Azure SQL database, copy this information from Advanced Editor then replace the original report connection information.


2.What will be the impact of this change on my measures & visuals?

 

If the Azure database content is the same as original database, the difference is just the move to Azure. It will not affect measures and visuals as data are not changed.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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