@Nishar Rehman
You can use the copy activity in Azure Data factory. https://learn.microsoft.com/en-us/azure/data-factory/connector-azure-sql-database?tabs=data-factory
You can use scheduled triggers to run the pipeline weekly.
https://learn.microsoft.com/en-us/azure/data-factory/concepts-pipeline-execution-triggers
This article provides information about how to execute a pipeline in Azure Data Factory or Azure Synapse Analytics, either on-demand or by creating a trigger.
Regards,
Oury
I want to copy objects and data from one schema in Production azure sql database into UAT in regular intervals
Nishar Rehman
0
Reputation points
I have data base with multiple schemas in Azure sql . I want to copy data and objects from only one schema to UAT and schedule this process weekly.
Azure SQL Database
Azure SQL Database
An Azure relational database service.
6,326 questions
2 answers
Sort by: Most helpful
-
Oury Ba-MSFT 20,911 Reputation points Microsoft Employee Moderator
2024-02-05T21:11:30.7+00:00 -
Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
2024-02-06T03:57:56.4066667+00:00 Hey,
You can use Azure Data factory with the below flow:
- Use a lookup activity with the source database to get list of all tables within the source database schema
- use foreach activity to iterate over the number of source database tables
- use copy activity with source database with dynamic dataset and sink as sink database with auto create table option and per script activity as drop table if it already exists.
Bulk copy :
https://learn.microsoft.com/en-us/azure/data-factory/tutorial-bulk-copy-portal
Auto Create:
https://learn.microsoft.com/en-us/answers/questions/773632/data-factory-copy-auto-create-sink-table
the auto create option would automatically create the schema at run time across source and sink