Restoring of database stuck / failed

Dylan Hyslop 1 Reputation point
2022-02-23T09:04:05.78+00:00

I have tries to restore a database backup.

I just created a new db and choose a backup as the source, The db is not to big, its about 13gb.

I'ts been running for over 3 days now. There is no sign of the new database on azure portal, however in SQL management studio, it lists it there?

177099-image.png

TITLE: Microsoft SQL Server Management Studio

------------------------------

Database 'Migrationtest' on server 'xyz' is not currently available. Please retry the connection later. If the problem persists, contact customer support, and provide them the session tracing ID of '{EFF361ED-0260-45EA-A9CA-AC88BD227257}'. (Microsoft SQL Server, Error: 40613)

For help, click: https://learn.microsoft.com/sql/relational-databases/errors-events/mssqlserver-40613-database-engine-error

------------------------------

I can't delete this db in azure or SSMS

Azure SQL Database
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 44,651 Reputation points
    2022-02-23T10:00:59.457+00:00

    How did you perform the restore, with plain SQL? Have you add the option WITH RECOVERY?
    With option WITH NORECOVERY the database engine waits for further differential/log backups to be also restored.
    If so, use option WITH RECOVERY ONLY to finish the restore process.

    See https://learn.microsoft.com/en-us/sql/t-sql/statements/restore-statements-transact-sql?view=sql-server-ver15
    => Comparison of RECOVERY and NORECOVERY

    0 comments No comments

  2. karthik reddy padigela 0 Reputation points
    2023-04-26T12:56:55.23+00:00

    when i am trying to restore database in sql server management studio it is failing


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.