Azure SQL sp_execute_remote 不支持输出参数

Azure SQL sp_execute_remote not supporting Output Parameters

我正在执行来自 here 的跨不同 Azure 数据库的存储过程。问题是我的原始 Sp 有 2 个输出参数。

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

我收到错误

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

如果 sp_execute_remote.Then 不支持输出参数,我如何从调用者数据库调用我的 Sp(原始数据库)?

您可以考虑创建一个 table 来存储存储过程的输出,您可以远程引用该 table 以检索存储过程的输出。这样您就可以删除存储过程的输出参数并解决 sp_execute_remote.

的当前限制

希望这对您有所帮助。

此致,

阿尔贝托·莫里洛

SQLCoffee.com