Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server 2012 Read Only Connection

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

like image 384
GordyII Avatar asked Nov 13 '22 11:11

GordyII


1 Answers

Connection String property ApplicationIntent

From the docs:

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

ApplicationIntent=ReadOnly
like image 141
Tony Shih Avatar answered Nov 15 '22 13:11

Tony Shih