Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restoring backup requires Single User
Message
 
To
22/11/2021 11:04:52
General information
Forum:
Microsoft SQL Server
Category:
Backups
Miscellaneous
Thread ID:
01682769
Message ID:
01682770
Views:
29
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform