How to gain exclusive access to SQL Server 2005 database to restore?

后端 未结 7 1960
礼貌的吻别
礼貌的吻别 2021-01-31 05:21

Whenever I restore a backup of my database in SQL Server I am presented with the following error:

Msg 3101, Level 16, State 1, Line 1
Exclusive access could not          


        
7条回答
  •  别跟我提以往
    2021-01-31 05:35

    Well, you can kill SQL processes and sessions with KILL.

    But if you just drop all his current connections, won't he just reopen them?

    You probably just have to go tell him you're going to restore from a backup so he stops connecting for a bit.

提交回复
热议问题