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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
grupomacarena
Regular Visitor

Store SQL data that is changing

Hello!

I have a SQL Server database that is modified every three months (some rows are erased). So far I ran a query in SQL, downloaded and stored the Excel files (no more than 2.5 MB each, in total 10 MB annually) but I don't want to make it manually for Power BI.

I need a way to automatically backup the original data in an online database (Azure or simply OneDrive Excel file...I don't mind).

I want to query the last three months of data, and add it to the online database automatically. What would be the easiest option? Thanks in advance! 🙂

1 ACCEPTED SOLUTION


@grupomacarena wrote:

Thanks for the answer @Shahfaisal 

That's exactly what I'd like to do: run a query from the SQL Server and copy it somewhere else. Azure SQL Database is a valid option. How can I perform this?


Follow this for instructions on how to do it -https://docs.microsoft.com/en-us/azure/data-factory/tutorial-hybrid-copy-data-tool

Also,  if you don't need this process to run on a schedule and you want to do it manually every 3 months, you can use SQL Server Import/Export Tool - https://docs.microsoft.com/en-us/sql/integration-services/import-export-data/start-the-sql-server-im...

 

 

View solution in original post

3 REPLIES 3
grupomacarena
Regular Visitor

Thanks for the answer @Shahfaisal 

That's exactly what I'd like to do: run a query from the SQL Server and copy it somewhere else. Azure SQL Database is a valid option. How can I perform this?


@grupomacarena wrote:

Thanks for the answer @Shahfaisal 

That's exactly what I'd like to do: run a query from the SQL Server and copy it somewhere else. Azure SQL Database is a valid option. How can I perform this?


Follow this for instructions on how to do it -https://docs.microsoft.com/en-us/azure/data-factory/tutorial-hybrid-copy-data-tool

Also,  if you don't need this process to run on a schedule and you want to do it manually every 3 months, you can use SQL Server Import/Export Tool - https://docs.microsoft.com/en-us/sql/integration-services/import-export-data/start-the-sql-server-im...

 

 

Shahfaisal
Solution Sage
Solution Sage

One of the simplest option is to use Azure Data Factory (or SSIS if you have an on-prem SQL Server license) to copy the tables from the SQL Server database to an Azure SQL Database.

I wouldn't store the data in Excel if I have the option to use a database - keeping data in a relational database gives you a lot of options to easily anlayze, move, etc.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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