SQL Server 2012 只读连接 [英] SQL Server 2012 Read Only Connection

查看:32
本文介绍了SQL Server 2012 只读连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不需要创建只读用户的情况下设置到 sql server 2012 的只读连接?

How can I setup a read only connection to sql server 2012 without the need to create a read only user?

推荐答案

Connection String 属性 ApplicationIntent

Connection String property ApplicationIntent

来自文档:

在连接到服务器时声明应用程序工作负载类型.可能的值为 ReadOnly 和 ReadWrite.例如:

Declares the application workload type when connecting to a server. Possible values are ReadOnly and ReadWrite. For example:

ApplicationIntent=ReadOnly

这篇关于SQL Server 2012 只读连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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