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

后端 未结 7 1848
礼貌的吻别
礼貌的吻别 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:46

    I'd suggest talking to your co-worker, and asking him to leave the database. (And make him aware of the problem, because he might lose changes he's made when you restore.)

    That's far better than dropping his connections, or setting exclusive access which might cause him some inconvenience.

    0 讨论(0)
提交回复
热议问题