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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.