Server ‘SERVERNAME’ is not configured for RPC

Bradley Schacht is a Principal Program Manager on the Microsoft Fabric product team based in Saint Augustine, FL. Bradley is a former consultant, trainer, and has coauthored 6 SQL Server and Power BI books, most recently Learn Microsoft Fabric. As a member of the Microsoft Fabric product team, Bradley works directly with customers to solve some of their most complex data problems and helps shape the future of Microsoft Fabric. Bradley gives back to the community through speaking at events such as the SQLBits, Fabric Community Conference, PASS Community Data Summit, SQL Saturdays, Code Camps, and user groups across the country including locally at the Jacksonville SQL Server User Group (JSSUG). He is a contributor on SQLServerCentral.com and blogs on his personal site, BradleySchacht.com.




The other thing to check is if the server is even configured to allow RPC. To check this run sp_helpserver and it will display a list of settings in the STATUS column. If you do not see RPC, RPC Out listed there they are not enabled and setting your linked server up correctly won’t help the situation any. If they are not listed and you would like to enable them the following commands will do that. Again, using our MYPROD server example: exec sp_serveroption @server='MYPROD', @optname='rpc', @optvalue='TRUE' exec sp_serveroption @server='MYPROD', @optname='rpc out', @optvalue='TRUE' From now on, as long as everything is configured correctly, you will be able to execute stored procedures to and from linked servers.