---
title: SqlServer System Parameter – SQL Server, Azure SQL, and Linked Server Settings
description: "The SqlServer System Parameter tells Nodinite which SQL Server hosts its databases: Azure SQL or on-premises, the server or listener name, and the Linked Server name used for Log Databases. Set during installation; change only with Nodinite Support."
---

# SqlServer - System Parameter

The **SqlServer** [System Parameter][System Parameters] describes the SQL Server that hosts the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> databases: whether it is Azure SQL or an on-premises SQL Server, which server, instance, or listener name to use, and which [Linked Server][Linked Servers] name to use for queries across [Log Databases][]. The [Logging Service][], [Monitoring Service][], [Log API][], and [Web API][] read it; the [Logging Service][] relies on it most, when it creates new [Log Databases][].

<aside aria-label="Warning" class="nodinite-note nodinite-note--warning">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-triangle-exclamation"></i> Warning</p>
<div class="nodinite-note__content"><p>Change this value only together with <a href="https://docs.nodinite.com/getting-started/support/">Nodinite Support</a> or as a planned step in a <a href="https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/planning/">database migration</a>. A wrong value stops <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> from creating and reading <a href="https://docs.nodinite.com/core-services/log-databases/overview/">Log Databases</a>, which makes the <a href="https://docs.nodinite.com/core-services/overview/">Core Services</a> non-operational.</p></div>
</aside>

<h2 id="at-a-glance"><i class="fal fa-table" aria-hidden="true"></i> At a Glance</h2>

| Property | Value |
| --- | --- |
| Key | `SqlServer` |
| Data type | json |
| Default | Set during installation. Empty means on-premises `localhost` (see [Value Format](#fa-code-value-format)) |
| Read by | [Logging Service][] / [Monitoring Service][] / [Log API][] / [Web API][] |
| Takes effect | Within about 15 seconds; no restart needed |
| Status | ✅ Active (change only with Support) |

## <i class="fal fa-gears" aria-hidden="true"></i> How It Works

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> runs many [Log Databases][] next to the [Configuration Database][]. To create new Log Databases and to query across them, the services need to know what kind of SQL Server they talk to. **SqlServer** is the single place that holds this:

* **Azure SQL** (`IsCloudServer` = `true`): the services use the `Host` value (the Azure SQL server's fully qualified name) for every operation, and no [Linked Servers][] are involved.
* **On-premises SQL Server** (`IsCloudServer` = `false`): the services use `Server` for the instance and `LinkedServerName` for queries that span databases (four-part names such as `[localhost].[Nodinite_DEMO_Log].[sys].[database_files]`). The Linked Server must exist on the SQL Server instance; see [Linked Servers][].
* **Always On Availability Groups**: put the listener name in `Server`. The [Logging Service][] detects the availability group and creates new Log Databases on the primary replica; see [Always On Availability Groups][] and [AvailabilityGroupBackupPath][].

The installation sets the value from the environment's SQL Server settings, and an update keeps it. Adding Log Databases never changes it. You change it only when the databases move to another SQL Server (another server, instance, cluster name, listener, or Azure SQL); the [Database Migration Planning][] checklist covers that step.

The parameter holds names and flags only. It stores no connection strings, user names, or passwords; connection strings are part of the [Configuration Database][] setup.

## <i class="fal fa-code" aria-hidden="true"></i> Value Format

A JSON object:

| Property | Type | Used when | Meaning |
| --- | --- | --- | --- |
| `IsCloudServer` | boolean | Always | `true` = Azure SQL; `false` = on-premises SQL Server. Missing or empty = `false` |
| `Server` | string | `IsCloudServer` = `false` | SQL Server name, `Server\Instance`, failover cluster name, or availability group listener. Ignored for Azure SQL |
| `Host` | string | `IsCloudServer` = `true` | Fully qualified Azure SQL server name, for example `mynodinite.database.windows.net` |
| `LinkedServerName` | string | `IsCloudServer` = `false` | Name of the [Linked Server][Linked Servers] used for queries across databases, for example `localhost` or `localhost\SQLEXPRESS` |
| `Port` | string | Not used | Present in the structure but not used by <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>; leave empty |
| `Protocol` | string | Not used | Present in the structure but not used by <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>; leave empty |

When the value is empty or `{}`, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> assumes an on-premises default instance on the same server: `IsCloudServer` = `false`, and `Server`, `Host`, and `LinkedServerName` = `localhost`. That fits a [proof of concept][POC] on one server, not production.

### Examples

Azure SQL:

```json
{"IsCloudServer":true,"Server":"","Host":"mynodinite.database.windows.net","LinkedServerName":"","Port":"","Protocol":""}
```

On-premises, default instance:

```json
{"IsCloudServer":false,"Server":"SQLSERVER01","Host":"","LinkedServerName":"localhost","Port":"","Protocol":""}
```

On-premises, named instance (escape the backslash in JSON):

```json
{"IsCloudServer":false,"Server":"SQLSERVER01\\SQLEXPRESS","Host":"","LinkedServerName":"localhost\\SQLEXPRESS","Port":"","Protocol":""}
```

Always On Availability Group (listener in `Server`):

```json
{"IsCloudServer":false,"Server":"AG-LISTENER","Host":"","LinkedServerName":"SQLNODE01","Port":"","Protocol":""}
```

Failover cluster instance (virtual network name in `Server`):

```json
{"IsCloudServer":false,"Server":"SQL-CLUSTER","Host":"","LinkedServerName":"localhost","Port":"","Protocol":""}
```

### Behaviour by Environment

| Environment | `IsCloudServer` | `Server` | `Host` | `LinkedServerName` | Behaviour |
| --- | --- | --- | --- | --- | --- |
| Azure SQL | `true` | Ignored | Azure SQL server name | Not used | `Host` is used for everything; no [Linked Servers][] |
| On-premises, default instance | `false` | `SQLSERVER01` or `localhost` | Not used | `localhost` | Queries across databases go through `[localhost]` |
| On-premises, named instance | `false` | `SQLSERVER01\INST` | Not used | `localhost\INST` | The instance name is part of the [Linked Server][Linked Servers] name |
| [Always On Availability Group][Always On Availability Groups] | `false` | Listener name | Not used | Detected | New [Log Databases][] are created on the primary replica |
| Failover cluster instance | `false` | Cluster name | Not used | `localhost` | [Linked Servers][] must exist on every node |
| Empty or `{}` | `false` | `localhost` | `localhost` | `localhost` | Single-server defaults |

## <i class="fal fa-lightbulb" aria-hidden="true"></i> Choosing a Value

* **Azure SQL needs `Host`.** With `IsCloudServer` = `true` and an empty `Host`, the services can't reach the databases. An empty value on Azure SQL makes <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> try `localhost`.
* **Match an existing Linked Server.** `LinkedServerName` must be the exact name of a Linked Server on the instance, with RPC and RPC Out enabled; see [Linked Servers][].
* **Named instances need the instance in both names.** Put `\INSTANCE` in `Server` and in `LinkedServerName`.
* **Availability group detection needs permission.** The service account needs `VIEW SERVER STATE` on the instance to detect the availability group.
* **One value for the whole environment.** You can't set different SQL Servers for different Log Databases; contact [Nodinite Support][] if you need that.
* **Kerberos errors** ("Cannot generate SSPI context") come from SPNs or delegation, not from this parameter; see [SPN][] and [Trusted for delegation][]. Failover clusters also need [MSDTC][].

To check the JSON before you save it, use the validation described in [Manage System Parameters][] (`POST api/SystemParameters/SqlServer/ValidateJson`).

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-list-check" aria-hidden="true"></i> [Database Migration Planning][]  
* <i class="fal fa-link" aria-hidden="true"></i> [Linked Servers][]  
* <i class="fal fa-server" aria-hidden="true"></i> [Always On Availability Groups][]  
* <i class="fal fa-list" aria-hidden="true"></i> [Manage Log Databases][]  
* <i class="fal fa-pen-to-square" aria-hidden="true"></i> [Manage System Parameters][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-cog" aria-hidden="true"></i> [System Parameters][]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Logging Service][]  
* <i class="fal fa-database" aria-hidden="true"></i> [Log Databases][]  
* <i class="fal fa-database" aria-hidden="true"></i> [Configuration Database][]  
* <i class="fal fa-folder-open" aria-hidden="true"></i> [AvailabilityGroupBackupPath][]  
* <i class="fal fa-life-ring" aria-hidden="true"></i> [LogDatabaseRecovery][]  
* <i class="fal fa-pen-square" aria-hidden="true"></i> [SqlPackageExecutable][]  
* <i class="fal fa-tasks" aria-hidden="true"></i> [SqlPackageParams][]  
* <i class="fal fa-leaf" aria-hidden="true"></i> [EnvironmentName][]  
* <i class="fal fa-database" aria-hidden="true"></i> [SQL Server Options][]  

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p><span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v6 and its Install and Update Tool are no longer supported.</p></div>
</aside>

[Always On Availability Groups]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/always-on-availability-groups/
[AvailabilityGroupBackupPath]:https://docs.nodinite.com/administration/settings/system-parameters/availabilitygroupbackuppath/
[Configuration Database]:https://docs.nodinite.com/core-services/configuration-database/overview/
[Core Services]:https://docs.nodinite.com/core-services/overview/
[Database Migration Planning]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/planning/
[EnvironmentName]:https://docs.nodinite.com/administration/settings/system-parameters/environmentname/
[Linked Servers]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/linked-servers/
[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[LogDatabaseRecovery]:https://docs.nodinite.com/administration/settings/system-parameters/logdatabaserecovery/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Manage Log Databases]:https://docs.nodinite.com/administration/settings/log-databases/overview/
[Manage System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/manage-system-parameters/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[MSDTC]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/transactions-msdtc/
[Nodinite Support]:https://docs.nodinite.com/getting-started/support/
[POC]:https://docs.nodinite.com/install-and-update/getting-started/poc/
[SPN]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/spn/
[SQL Server Options]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/sql-server-options/
[SqlPackageExecutable]:https://docs.nodinite.com/administration/settings/system-parameters/sqlpackageexecutable/
[SqlPackageParams]:https://docs.nodinite.com/administration/settings/system-parameters/sqlpackageparams/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Trusted for delegation]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/trusted-for-delegation/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/