Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Restoring backup requires Single User
Message
 
À
22/11/2021 11:04:52
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Copies de sauvegarde
Divers
Thread ID:
01682769
Message ID:
01682770
Vues:
30
>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?
ALTER DATABASE DatabaseName
SET MULTI_USER;
?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform