Azure SQL Server - Best method to copy 20 million rows from one table to another

T West 136 Reputation points
2020-12-14T02:44:37.31+00:00

Hi,

We would like to make a complete copy of one our Azure SQL tables (containing approx 20 million rows). Is there a way to do this without scripting in Management Studio? Last time we attempted to execute such a query the machines running the query crashed around the 100k row mark.

Thanks

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. Anurag Sharma 17,606 Reputation points
    2020-12-14T04:13:21.707+00:00

    Hi @T West , welcome to Microsoft Q&A forum.

    There are many ways to do migration from one Azure Database table to another:

    1. Using Azure Data Factory
    2. Using elastic queries
    3. Using Data Sync (Suitable for entire database)
    4. Generate Scripts

    You can definitely give a try to Azure Data Factory as mentioned in below article:
    https://learn.microsoft.com/en-us/azure/data-factory/tutorial-bulk-copy-portal

    Please let us know if this helps or we can discuss further on this.

    ----------

    if answer helps, please select 'Accept Answer' as it could help other community members as well.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. T West 136 Reputation points
    2020-12-14T20:05:20.353+00:00

    Thanks @AnuragSharma-MSFT

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.