ALTER DATABASE failed because a lock could not be placed on database

后端 未结 10 2276
感情败类
感情败类 2020-12-12 09:52

I need to restart a database because some processes are not working. My plan is to take it offline and back online again.

I am trying to do this in Sql Server Manage

10条回答
  •  一个人的身影
    2020-12-12 10:38

    In my scenario, there was no process blocking the database under sp_who2. However, we discovered because the database is much larger than our other databases that pending processes were still running which is why the database under the availability group still displayed as red/offline after we tried to 'resume data'by right clicking the paused database.

    To check if you still have processes running just execute this command: select percent complete from sys.dm_exec_requests where percent_complete > 0

提交回复
热议问题