SQL Linked server - Remote access error when executing SP

放肆的年华 提交于 2019-12-06 15:00:28
Rafa Sanchez

Despite being an old thread, forget about enabling remote access (and restart service) on remote server and try:

EXECUTE (N'database.[dbo].[SP]') AT Linkedserver

If you want to run SPs from Server B, then make Server B as the linked server in server A.

Run the script below in Server A, not B:

EXEC sp_configure 'remote access', 1; RECONFIGURE;

Then restart SQL Service in A. Done.

Please first check your server properties if remote connections is allowed (related picture below). IF yes, use: exec nameofyourSP 'remote access', 1 reconfigure and try again.

amir lakhi

First Run:

EXEC sp_configure 'remote access', '1';

RECONFIGURE;

You now need to restart MSSQLSERVER in order for the sp_configure command to take effect.

Once you restart it, run sp_configure again and notice that the run_value is 1 now. That's what you want.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!