Hello,
Yesterday I had to run this command to bring database to read only mode as there was no space left on the data drive.
USE [zenworks_UAL]
GO
ALTER DATABASE [zenworks_UAL] SET READ_ONLY WITH NO_WAIT
GO
This morning extra 10 GB has been allocated to the data drive and I ran this command to bring database back to read/write.
USE [zenworks_UAL]
GO
ALTER DATABASE [zenworks_UAL] SET READ_WRITE WITH NO_WAIT
GO
However I am getting the error:
Msg 924, Level 14, State 1, Line 1
Database 'zenworks_UAL' is already open and can only have one user at a time.
Msg 1205, Level 13, State 68, Line 1
Transaction (Process ID 80) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.
I've checked sp_who and there is no process whose status is suspended. I've also checked sys.sysprocesses table and there is no blocked > 0.
Also dbcc opentran showing no open transaction.
Please advise?
Many thanks,
Mohan