Azure SQL sp_execute_remote不支持输出参数

问题描述:

我正在关注从here执行跨不同Azure数据库的存储过程。事情是我的原始Sp有2个输出参数。Azure SQL sp_execute_remote不支持输出参数

但是当我试图从其他数据库调用Sp。

我得到的错误作为

Procedure SP_EXECUTE_REMOTE, Line 1 [Batch Start Line 0] 
Output parameters are not supported with sp_execute_remote. 

如果输出参数不支持sp_execute_remote.Then我怎么能叫我从主叫DB SP(原DB)。?

您可以考虑创建一个表来存储存储过程的输出,并且您可以远程引用该表来检索存储过程的输出。这样,您可以删除存储过程的输出参数,并解决sp_execute_remote的当前限制。

希望这会有所帮助。

问候,

阿尔贝托·莫里略

SQLCoffee.com

+0

是的,我也跟你提above.Also我使用了嵌套动态查询同样的事情做 – Jayendran