简体   繁体   English

使用ApplicationIntent = ReadOnly和将数据插入临时表的存储过程

[英]Using ApplicationIntent=ReadOnly with stored procedures which insert data to temp tables

我正在使用SQL Server 2012 AlwaysOn侦听器,我想使用与ApplicationIntent=ReadOnly参数的连接来调用某些存储过程,这是我的问题:将数据插入临时表的存储过程可以使用与ApplicationIntent=ReadOnly连接吗?

According to Readable Secondary Replicas 根据Readable Secondary Replicas

Note 注意

Though you cannot write data to secondary databases, you can write to read-write databases on the server instance that hosts the secondary replica, including user databases and system databases such as tempdb . 虽然您无法将数据写入辅助数据库,但您可以在托管辅助副本的服务器实例上写入读写数据库,包括用户数据库和系统数据库(如tempdb)

So the answer is your stored procedures will work. 所以答案是你的存储过程会起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM