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
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
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.

Top Solution Authors