Share via

migrate 1 TB database

Chaitanya Kiran 841 Reputation points
2024-03-24T15:20:55.8633333+00:00

Is there any way to migrate 1 TB database with 10 minutes downtime

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


6 answers

Sort by: Most helpful
  1. Sirajudeen M. Ibrahim 0 Reputation points
    2024-03-25T12:10:32.3033333+00:00

    What is your current setup - do you have AlwaysON?

    Migrate means, from 1 cluster to another or with in the same cluster?

    DB migration can be performed in few ways and the choice is based on your setup and the bandwidth.

    Detach-Attach

    Backup-Restore

    Replication or add new node in AG etc.,

    Was this answer helpful?

    0 comments No comments

  2. ZoeHui-MSFT 41,551 Reputation points
    2024-03-25T02:46:23.1066667+00:00

    Hi @Chaitanya Kiran,

    There are several ways to copy a database:

    • Using the Copy Database Wizard You can use the Copy Database Wizard to copy or move databases between servers or to upgrade a SQL Server database to a later version. For more information, see Use the Copy Database Wizard.
    • Restoring a database backup To copy an entire database, you can use the BACKUP and RESTORE Transact-SQL statements. Typically, restoring a full backup of a database is used to copy the database from one computer to another for a variety of reasons. For information on using backup and restore to copy a database, see Copy Databases with Backup and Restore.

    Copy Databases to Other Servers

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Was this answer helpful?

    0 comments No comments

  3. RahulRandive 10,506 Reputation points
    2024-03-24T23:41:45.74+00:00

    Hi @Chaitanya Kiran

    Migrating a 1 TB database with only 10 minutes of downtime is a challenging task.

    It's important to note that the amount of downtime required for a migration depends on a variety of factors, including the size of the database, the complexity of the schema, and the available resources. It's a good idea to test the migration process in a non-production environment and carefully plan the migration to minimize the amount of downtime required.

    Are you migrating from On-premise to SQL VM or Azure SQL or Managed instance. Please elaborate your scenario.

    Thank You!

    Was this answer helpful?


  4. Net Runner 625 Reputation points
    2024-03-24T17:26:28.1566667+00:00

    If that is a local database, the quickest option would be detaching the database on the source server, copying MDF and LDF files to the destination server, and attaching the database there. In this case your downtime will depend only on the time you need to copy the files over. That is usually the quickest option if we try to stay simple and not involve any kind of replication and failover strategies.

    If that database is located in Azure, please check the following guide https://www.starwindsoftware.com/blog/azure-migrate-your-sql-server-databases for step-by-step instructions.

    I hope that helps.

    Was this answer helpful?

    0 comments No comments

  5. Olaf Helper 47,621 Reputation points
    2024-03-24T15:30:44.8033333+00:00

    You haven't mentioned any detail, so difficult to say.

    Migration from where to where?

    Was this answer helpful?

    0 comments No comments

Your answer

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