Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 SQL Server 2012 AlwaysOn 侦听器,我想使用带ApplicationIntent=ReadOnly参数的连接来调用一些存储过程,这是我的问题:将数据插入临时表的存储过程可以使用连接ApplicationIntent=ReadOnly吗?
ApplicationIntent=ReadOnly
根据可读的二级副本
笔记 虽然您不能将数据写入辅助数据库,但您可以写入托管辅助副本的服务器实例上的读写数据库,包括用户数据库和系统数据库,例如tempdb。
笔记
虽然您不能将数据写入辅助数据库,但您可以写入托管辅助副本的服务器实例上的读写数据库,包括用户数据库和系统数据库,例如tempdb。
所以答案是你的存储过程可以工作。