How to restore Azure managed instance database Spilt backup or FILT backup files from Azure to Local server .

Srinivas Naraipeddi 40 Reputation points
2024-10-08T10:57:00.45+00:00

We are trying to restore Azure managed instance database Split or FILT backup files from azure to local server , how to restore multiple Split backup files in Local SQL server at a time .

Azure SQL Database
{count} votes

Accepted answer
  1. Faisal Ahmed 80 Reputation points
    2024-10-08T11:29:33.2066667+00:00

    To restore multiple split backup files from Azure to a local SQL Server, you can use the RESTORE DATABASE command with the WITH FILE option to specify each split backup file. Here is a step-by-step guide to achieve this:

    1. Download the Split Backup Files: Ensure that all the split backup files are downloaded from Azure to your local server.
    2. Use the RESTORE DATABASE Command: You can use the RESTORE DATABASE command in SQL Server Management Studio (SSMS) or through a script in Visual Studio.

    Here is an example of how you can restore a database from multiple split backup files: -- Step 1: Restore the database with the first backup file and NORECOVERY

    RESTORE DATABASE [YourDatabaseName]

    FROM DISK = 'C:\Backups\YourDatabaseName_Part1.bak'

    WITH NORECOVERY;

    -- Step 2: Restore the subsequent backup files with NORECOVERY

    RESTORE DATABASE [YourDatabaseName]

    FROM DISK = 'C:\Backups\YourDatabaseName_Part2.bak'

    WITH NORECOVERY;

    RESTORE DATABASE [YourDatabaseName]

    FROM DISK = 'C:\Backups\YourDatabaseName_Part3.bak'

    WITH NORECOVERY;

    -- Repeat the above step for all the split backup files

    -- Step 3: Restore the final backup file with RECOVERY

    RESTORE DATABASE [YourDatabaseName]

    FROM DISK = 'C:\Backups\YourDatabaseName_PartN.bak'

    WITH RECOVERY;

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.