Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Restoring backup requires Single User
Message
De
22/11/2021 11:04:52
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Copies de sauvegarde
Titre:
Restoring backup requires Single User
Divers
Thread ID:
01682769
Message ID:
01682769
Vues:
28
Since recently, I started to have difficulties restoring a backup of the database. I always had this database is in used. The only way I have found to be able to restore is to add a Single User approach :
USE Master
GO

ALTER DATABASE DatabaseName
SET SINGLE_USER
WITH ROLLBACK IMMEDIATE
GO

RESTORE DATABASE DatabaseName FROM DISK = N'D:\Data\DatabasePath\DatabaseName.bak'
Anyone would know why I have to do this now?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform