---
title: "Configure Linked Server RPC and RPC OUT for Nodinite: Secure Distributed SQL Integration"
description: Configure SQL Server Linked Server RPC and RPC OUT options for Nodinite. Step-by-step guide for secure, high-performance distributed and local environments.
---

# About the Linked Server RPC and RPC OUT Options

Unlock seamless, secure integration between :Nodinite: and SQL Server by configuring Linked Server RPC and RPC OUT options. This guide empowers you to:

* ✅ Ensure reliable distributed and local :Nodinite: installations  
* ✅ Follow step-by-step setup for SQL Server [Linked Servers][]  
* ✅ Optimize security and performance with correct RPC settings  
* ✅ Avoid common support issues and future troubleshooting  

>When installing :Nodinite: in a distributed environment, you should configure certain RPC-related settings. For consistency and to avoid future support incidents, we recommend following these instructions for all types of installations.

>[!TIP]
>**New to Linked Servers?** See the comprehensive [Linked Servers][] guide first for complete setup instructions, naming conventions, AOAG/cluster configuration, and troubleshooting. This page provides a deep dive into the RPC and RPC Out settings specifically.

:Nodinite: relies on the SQL Server concept of [Linked Servers][] to connect with SQL Server databases. :Nodinite: **also** uses linked servers to join data between the [Configuration Database][ConfigDB] and the [Log Databases][], even for local installations.

<div class="mermaid">
graph LR
    subgraph "Nodinite"
        roNS[fal:fa-code-commit Nodinite Core Services]
    end
    subgraph "SQL Server Instance"
        roConfigDatabase(fal:fa-database Configuration database) ---|"Linked Server"| roLogDatabase(fal:fa-database Log databases)
        roNS --> roConfigDatabase
    end
    subgraph "BizTalk SQL Servers"
        roBT(fal:fa-database BizTalk Databases)
    end
    subgraph "Other SQL Server Instance"
        roLogDatabases(fal:fa-database Log databases)
    end
    roConfigDatabase -.->|"Linked Server, RPC and RPC Out"| roBT
    roConfigDatabase -.->|"Linked Server, RPC and RPC Out"| roLogDatabases
</div>

*Diagram: how the :Nodinite: [Core Services][] use the [Configuration Database][ConfigDB], which joins data with local and remote [Log Databases][] and the BizTalk databases (for the [BizTalk Server Logging Agent][BizTalk Logging]) through [Linked Servers][]. Every one of these linked servers needs RPC and RPC Out.*

You can read more about the available options for linked servers in SQL Server Management Studio (SSMS) in the official documentation: [Linked Server Properties (Server Options Page)](https://learn.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/ms186839(v=sql.105))<sup>:fa-arrow-up-right-from-square:</sup>.

>[!WARNING]
>There is a breaking change in SQL Server 2025. Please review this guide for additional information [linked-server-connections-fail-after-an-upgrade](https://learn.microsoft.com/en-us/sql/database-engine/breaking-changes-to-database-engine-features-in-sql-server-2025?view=sql-server-ver17#linked-server-connections-fail-after-an-upgrade)<sup>:fa-arrow-up-right-from-square:</sup>.

To add a linked server with the **RPC** and **RPC Out** settings set to **true** (mandatory for every :Nodinite: installation, local or distributed), execute the following commands:

```SQL
EXEC sp_addlinkedserver @server = 'LOCALHOST\instance';
EXEC sp_serveroption 'LOCALHOST\instance', 'rpc', true;
EXEC sp_serveroption 'LOCALHOST\instance', 'rpc out', true;
```

*Replace 'LOCALHOST\instance' with the appropriate value for your environment.*

If you are not allowed to execute these commands, request a grant for your user, or for the [Logging Service][] account as in the example below. You cannot grant this permission to yourself; log in as a different user with SYSADMIN rights to modify the server. For a broader rights model (installation, first database creation by the Logging Service, and maintenance behavior), see [SQL Server Sysadmin Requirements][].

```SQL
USE master;
GRANT ALTER ANY LINKED SERVER TO [DOMAIN\LoggingServiceAccountName];
GO
USE master;
GRANT ALTER ANY LOGIN TO [DOMAIN\LoggingServiceAccountName];
```

## RPC

**RPC** is disabled by default in SQL Server to enhance security by reducing the attack surface. Enabling RPC is required for :Nodinite: to perform remote procedure calls between linked servers.

Read Microsoft's **RPC server option documentation** for technical details: [Configure remote servers (RPC)](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/remote-servers?redirectedfrom=MSDN&view=sql-server-ver15)<sup>:fa-arrow-up-right-from-square:</sup>.  
![Linked Server Properties Server Options page with RPC set to True][1]  
*The **RPC** option set as recommended to "True".*

:Nodinite: uses **remote servers**, and the RPC setting enables a specific security feature. If this option is turned off, when the second server (the one receiving the login attempt from the first server to which the client connected) tries to validate the remote login, it fails with the following error (example):  

```plaintext
18482 "Could not connect to server '%.*ls' because '%.*ls' is not defined as a remote server. Verify that you have specified the correct server name. %.*ls."
```

You can also set this option to **True** or **False** in the linked server's properties by right-clicking the **Linked Server** name in SQL Server Management Studio (SSMS). Alternatively, you can use the following script to enable **RPC**:  

```SQL
EXEC master.dbo.sp_serveroption @server=N'LOCALHOST\instance', @optname=N'rpc', @optvalue=N'true'
```

*Replace 'LOCALHOST\instance' with the appropriate value for your environment.*

## RPC OUT

The **RPC OUT** setting is required when working with linked servers (which :Nodinite: does frequently).  

:new7.13: With **RPC Out** on the linked server of a remote [Log Database][Log Databases], a [Log View][Log Views] search runs its part on that Log Database's server and fetches only the answer, which is much faster with [Search Field][Search Fields] filters. Without it, searches still work, slower, through the linked server, and the [Web API][] logs a warning naming the linked server once a minute while searches run. See [LogSearchSettings][].

![Linked Server Properties Server Options page with RPC Out set to True][2]  
*Here, the **RPC Out** option is set as recommended to **True**.*  

RPC (Remote Procedure Call) refers to the stored procedure or ad hoc SQL statement being run remotely from the source SQL Server to another SQL Server using the **Linked Server**.

Below are some syntax examples:

|Syntax|Example|  
|---|---|  
|**servername.databasename.schemaname.procedurename**|EXEC [LOCALHOST\instance].master.dbo.sp_who2|  
|**EXECUTE(databasename.schemaname.procedurename ) AT %%LINKEDSERVERNAME%%**|EXEC ('master.dbo.sp_who2') AT [LOCALHOST\instance]|  

*Replace 'LOCALHOST\instance' with the appropriate value for your environment.*

These types of "RPC" calls will be blocked unless the **RPC Out** option is set to True on the **Linked Server**.

```plaintext
Msg 7411, Level 16, State 1, Line 1  Server 'LOCALHOST\instance' is not configured for RPC.
```

You can also set this option to **True** or **False** in the linked server's properties by right-clicking the **Linked Server** name in SQL Server Management Studio (SSMS). Alternatively, you can use the following script to enable **RPC Out**:

```sql
EXEC master.dbo.sp_serveroption @server=N'LOCALHOST\instance', @optname=N'rpc out', @optvalue=N'true'
```

*Replace 'LOCALHOST\instance' with the appropriate value for your environment.*

___

## :fa-hand-point-right: Next Steps

* :fa-link: [Linked Servers][] — Complete linked server setup guide  
* :fa-arrows-rotate: [MSDTC][] — Distributed transaction coordinator configuration  

## :fa-link-horizontal: Related Topics

* :fa-database: [Microsoft SQL Server and Nodinite][Microsoft SQL Server]  
* :fa-database: [Always On (AOAG)][AlwaysOn]  
* :fa-shield-check: [SQL Server Firewall Configuration][SQL Firewall]  
* :fa-plug-circle-bolt: [SQL Server Connection Strings][SQL Connection Strings]  
* :fa-clipboard-list: [Service Principal Names (SPN)][SPN] — Kerberos authentication  
* :fa-user-shield: [Trusted for delegation][] — Multi-hop authentication  
* :fa-map: [Planning your Nodinite Installation][]  
* :fa-database: [SQL Server Troubleshooting][SQL Server Overview]  

[1]:{ndm}/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/RPC.png
[2]:{ndm}/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/RPCOut.png

[AlwaysOn]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Always%20On%20Availability%20Groups.md
[BizTalk Logging]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Logging/Overview.md
[ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[Linked Servers]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Linked%20Servers.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[LogSearchSettings]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogSearchSettings.md
[Microsoft SQL Server]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Options.md
[MSDTC]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Transactions%20MSDTC.md
[Planning your Nodinite Installation]:{ndr}/Install%20and%20Update/Getting%20started/1.%20Planning%20your%20Nodinite%20Solution.md
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[SPN]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SPN%20for%20SQL%20Server.md
[SQL Connection Strings]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Connection%20Strings.md
[SQL Firewall]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Firewall.md
[SQL Server Overview]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Overview.md
[SQL Server Sysadmin Requirements]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Sysadmin%20Requirements.md
[Trusted for delegation]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Trusted%20for%20delegation.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md