[英]Could not execute procedure on remote server via Linked server
I triggered a subscription using following query on Server-A using following query and it executes correctly - 我使用以下查询在服务器A上使用以下查询触发了订阅,并且订阅正确执行-
On Server-A: 在服务器A上:
EXEC ReportServer.dbo.AddEvent @EventType='TimedSubscription', @EventData='452e4a40-7442-4377-abe3-1b96fc953956'
However, when I trigger it from Server B by adding Server-A as a Linked Server, then it doesn't work. 但是,当我通过将服务器A添加为链接服务器从服务器B触发它时,则它不起作用。 It fails by throwing below error - 它因抛出以下错误而失败-
On Server-B: 在服务器B上:
EXEC [Server-A].ReportServer.dbo.AddEvent @EventType='TimedSubscription', @EventData='452e4a40-7442-4377-abe3-1b96fc953956'
Error: 错误:
Could not execute procedure on remote server 'Server-A' because SQL Server is not configured for remote access. 由于未配置SQL Server进行远程访问,因此无法在远程服务器“ Server-A”上执行过程。 Ask your system administrator to reconfigure SQL Server to allow remote access. 要求系统管理员重新配置SQL Server以允许远程访问。
I have enabled the Remote Access configuration on Server-A by 我已通过以下方式在服务器A上启用了远程访问配置:
USE ReportServer ;
GO
EXEC sp_configure 'remote access', 1;
GO
RECONFIGURE ;
GO
Still it gives me above mentioned error. 仍然给了我上面提到的错误。
Can anyone help me on this? 谁可以帮我这个事? Thanks 谢谢
UPDATE UPDATE
NOT a single Stored Procedure is getting called via Linked Server. 通过链接服务器不会调用单个存储过程。 This has been observed after latest patch installed on Windows Server 2012R2. 在Windows Server 2012R2上安装了最新补丁程序之后,便已观察到这种情况。
尽管是旧线程,但忘记在远程服务器上启用远程访问(并重新启动服务),然后尝试:
EXEC (N'ReportServer.dbo.AddEvent @EventType=''TimedSubscription'', @EventData=''452e4a40-7442-4377-abe3-1b96fc953956'' ') AT [Server-A]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.