0
我遇到了与文章Using OPENROWSET to dynamically retrieve SP results when SP contains # temp tables中描述的问题非常类似的问题。SQL Server - OPENROWSET错误
使用变通我在化妆的东西的工作取得成功:
SELECT *
FROM OPENROWSET('SQLNCLI',
'Server=SERVERNAME;Trusted_Connection=yes;',
'SET FMTONLY OFF; SET NOCOUNT ON; exec DatabaseName.dbo.zzTempSP @A=1,@B=2'
)
但我想找出为何出现错误。