将数据库置为只读
use [master] go alter database [database-name] set read_only with no_wait; go
取消只读
use [master] go alter database [database-name] set read_write with no_wait; go
本文来自博客园,作者:abce,转载请注明原文链接:https://www.cnblogs.com/abclife/p/16283425.html