設定為 Single User
USE master; GO ALTER DATABASE DBWorks2012 SET SINGLE_USER WITH ROLLBACK IMMEDIATE; GO
設定為 Multi User
USE master; GO ALTER DATABASE DBWorks2012 SET MULTI_USER; GO
另外,也可以藉由下列指令,來設定 唯讀/讀寫 (READ_WRITE)
ALTER DATABASE DBWorks2012 SET READ_ONLY; GO
沒有留言:
張貼留言