Exit single-user mode

前端 未结 18 1055
离开以前
离开以前 2020-12-12 09:32

Currently, my database is in Single User mode. When I try to expand me database, I get an error:

The database \'my_db\' is not accessible.(ObjectExplo

18条回答
  •  爱一瞬间的悲伤
    2020-12-12 10:05

    Today I faced the same issue where my database was changed from Multi User to Single User mode and this was eventually stopping me to publish database.

    In order to fix this issue, I had to close all Visual Studio instances and run the below command in Sql Server query window -

    USE [Your_Database_Name]; ALTER DATABASE [Your_Database_Name] SET MULTI_USER GO
    

    This command has changed the DB from Single user to Multi User and afterwards, I was successfully able to publish.

提交回复
热议问题