2017-03-29 164 views
0

远程服务器上执行的程序我触发使用在服务器-A使用下面的查询以下查询预订并正确执行 -无法通过链接服务器

在服务器-A:

EXEC ReportServer.dbo.AddEvent @EventType='TimedSubscription', @EventData='452e4a40-7442-4377-abe3-1b96fc953956' 

然而,当我通过添加服务器A作为链接服务器从服务器B触发它时,它不起作用。它未能通过抛出下面的错误 -

在服务器B:

EXEC [Server-A].ReportServer.dbo.AddEvent @EventType='TimedSubscription', @EventData='452e4a40-7442-4377-abe3-1b96fc953956' 

错误:

Could not execute procedure on remote server 'Server-A' because SQL Server is not configured for remote access. Ask your system administrator to reconfigure SQL Server to allow remote access.

我已经

USE ReportServer ; 
GO 
EXEC sp_configure 'remote access', 1; 
GO 
RECONFIGURE ; 
GO 
启用在服务器A上的远程访问配置

它仍然给我上面提到的错误。

任何人都可以帮助我吗?由于

UPDATE

不是一个单一的存储过程是越来越通过链接服务器调用。在Windows Server 2012 R2上安装最新的补丁程序后,已经观察到这种情况。

回答

0

尽管是一个古老的线程忘了启用远程访问(并重新启动服务)远程服务器上,并尝试:

EXEC (N'ReportServer.dbo.AddEvent @EventType=''TimedSubscription'', @EventData=''452e4a40-7442-4377-abe3-1b96fc953956'' ') AT [Server-A] 
相关问题