Exit single-user mode

前端 未结 18 1071
离开以前
离开以前 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:21

    Use this Script

    exec sp_who
    

    Find the dbname and spid column

    now execute

    kill spid 
    go
    ALTER DATABASE [DBName]
    SET MULTI_USER;
    

提交回复
热议问题