Friday, December 9, 2022

Database from SINGLE USER mode to MULTI USER

 USE master;

GO

ALTER DATABASE MyDb2022

SET SINGLE_USER

WITH ROLLBACK IMMEDIATE;

GO

ALTER DATABASE MyDb2022

SET READ_ONLY;

GO