MSSQL Database stuck in restore state

From DevOps Notebook
Revision as of 09:13, 6 September 2022 by MilosZ (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
USE [master]

RESTORE DATABASE [YourDatabase.Name] 
FROM  DISK = N'C:\PathToBackupFiles.bak' WITH RECOVERY

With in-memory database:

USE [master]

RESTORE DATABASE [YourDatabase.Name] 
FROM  DISK = N'C:\PathToBackupFiles.bak' WITH RECOVERY,
MOVE N'XTP' TO N'C:\MSSQL\Data\XTP'
GO