使用只读模式创建数据库 [英] create database with read-only mode

查看:70
本文介绍了使用只读模式创建数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



请告诉我如何将数据库设置为只读模式,数据库的所有者只能进行任何交易,但如果我附加了数据库到任何其他系统,附加后不应允许其他用户对其进行任何交易



谢谢..

Hi all

Please tell me how to make a database to read-only mode where the owner of the database can only do any transactions but if i attach that database to any other system, after attaching it should not allow the other user to do any transactions on it

Thank you..

推荐答案

如下所示使用



use it like below

ALTER DATABASE [TESTDB] SET READ_ONLY WITH NO_WAIT
GO


这篇关于使用只读模式创建数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆