---
title: "Configuration Changes: Updating Connection Strings After Migration"
description: "Point Nodinite v7 to the new SQL Server after a database migration: the connection string in the Nodinite Portal, the SqlServer System Parameter, the Log Database entries, the Pickup Service, and Monitoring Agent databases."
---

# Configuration Changes

Information about the whereabouts of the [Configuration Database][ConfigDB] and [Logging Databases][Log Databases] now needs to be updated in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>.

To avoid most of the following steps, re-use the SQL Server cluster and/or listener names. If you are using stand-alone SQL Server instances, and not re-using the old server name, the new name must be specified accordingly.

<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>This page covers <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7. <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v6 is no longer supported; to move a v6 installation, follow <a href="https://docs.nodinite.com/install-and-update/getting-started/version-6/migrating-v6-to-v7-on-new-hardware/">Migrating v6 to v7 on New Hardware</a>.</p></div>
</aside>

## <i class="fal fa-network-wired" aria-hidden="true"></i> Understanding Where Nodinite Keeps the Database Locations

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> keeps the location of its databases in several places. The connection string to the Configuration Database comes from the Nodinite Portal; everything else is stored in the Configuration Database itself.

<div class="mermaid">
flowchart TB
    Portal["fa:fa-cloud Nodinite Portal<br/>Step 3: Infrastructure<br/>connection string"] --> CLI["fa:fa-terminal CLI update<br/>elevated PowerShell 7"]
    CLI --> Core["fa:fa-globe Core Services<br/>protected connection string"]
    Core --> Config["fa:fa-database Configuration Database"]
    Config --> SqlServer["fa:fa-sliders SqlServer System Parameter<br/>server and linked server names"]
    Config --> LogTables["fa:fa-table LogTables<br/>Server and HOST per Log Database"]
    LogTables -->|"Linked Server"| Log["fa:fa-database Log Databases"]
    Pickup["fa:fa-inbox Pickup Service<br/>optional direct write"] --> Config
    Agent["fa:fa-hard-drive Monitoring Agents"] --> AgentDB["fa:fa-database Monitoring Databases"]
    style Portal fill:#2678BD
    style CLI fill:#2678BD
    style SqlServer fill:#E47528
    style LogTables fill:#E47528
    style Pickup fill:#9E59BB
    style Agent fill:#9E59BB
</div>

*Diagram: the places to update after a move. Blue is the connection string you set in the Nodinite Portal ([Step 3: Infrastructure][Portal SQL Server]) and the [CLI update][Updating Nodinite v7] that writes it into the [Core Services][]; orange is what lives in the [Configuration Database][ConfigDB] (the [SqlServer][] [System Parameter][System Parameters] and the `LogTables` entries for the [Log Databases][], reached through [Linked Servers][]); purple is the [Pickup Service][] and the [Monitoring Agents][] with their own [Monitoring Databases][Agent Database].*

|What|Where it is stored|When to change it|How|  
|---|---|---|---|  
|Configuration Database connection string|Nodinite Portal, written into each Core Service by the CLI|New server, instance, or listener name|[Step 1](#step-1-update-the-connection-string-in-the-nodinite-portal)|  
|[SqlServer][] System Parameter|Configuration Database|Any move to a different SQL Server instance|[Step 2](#step-2-update-the-sqlserver-system-parameter)|  
|Log Database server names|`LogTables` in the Configuration Database|Log Databases moved to another instance|[Step 3](#step-3-update-the-log-database-information)|  
|Pickup Service direct write|Pickup Service configuration|Only when **Use Configuration DB** is checked|[Step 4](#step-4-update-the-pickup-service)|  
|Monitoring Database connection strings|Nodinite Portal, on each agent card in the [Agents step][]|Monitoring Databases moved|[Step 5](#step-5-update-monitoring-agent-databases)|  
|[Linked Servers][]|`master` database on the SQL Server instance|New instance, newer SQL Server version, or in-place upgrade|[Recreate Linked Servers][]|  

## Step 1: Update the Connection String in the Nodinite Portal

The [Core Services][] read the Configuration Database connection string from their configuration, which the CLI writes from the Nodinite Portal at every install and update:

1. In the Nodinite Portal, open the environment and change the connection string in [Step 3: Infrastructure][Portal SQL Server]. If the environment is set to prompt for the connection string, pass the new value with `--database-connection-string` instead (see [Passing arguments when needed][Portal CLI Arguments]).
2. Download the package and run the CLI workflow in elevated PowerShell 7, as described in [Updating Nodinite v7][]. The CLI writes the new connection string into each Core Service.
3. Enter the connection string **unencrypted**; <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> protects it with **certificate-based encryption** (see [Secret Management][]).

For formats, certificate validation, and Always On settings, see [SQL Server Connection Strings][Connection Strings].

## Step 2: Update the SqlServer System Parameter

When the databases move to a different SQL Server instance, the [SqlServer][] System Parameter must describe the new server names, linked server names, and cloud or on-premises settings. Without it, the [Logging Service][] can't create new Log Databases or query existing ones. See [SqlServer System Parameter][Planning SqlServer] in the planning guide, and contact [Nodinite Support][] for assistance.

## Step 3: Update the Log Database Information

This script creates another T-SQL script. Use it to change the SQL Server instance name for selected [Log Databases][] in the **LogTables** table in the [Configuration Database][ConfigDB] (names like the `@prefix` variable).

>Change the `@prefix`, `@oldServerName` and `@newServerName` parameters as appropriate and run from the [Configuration Database][ConfigDB] in SSMS. Log Databases created by <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v6 keep their `NodiniteLog_<Environment>_` names after an upgrade; see [Log Database Naming][].

``` SQL
DECLARE @sql NVARCHAR(max) =''
DECLARE @prefix NVARCHAR(255) =  'Nodinite_Dev_Log_'
DECLARE @oldServerName NVARCHAR(255) =  'localhost'
DECLARE @newServerName NVARCHAR(255) =  'MYOTHERSQLDATABASE[\InstanceName]'
DECLARE @length INT
SET @length = LEN(@prefix) 

;WITH nodinitelogdatabases ([Database]) as
(SELECT [Database] From LogTables Where [Database] Like (@prefix + '%'))
Select @sql += 'UPDATE LogTables SET [Server] = ''' + @newServerName + ''', [HOST] = ''' + @newServerName + ''''  + ' WHERE [Database] = ''' + l.[Database] + '''' + ' AND [Server] = ''' + @oldServerName + ''''   + CHAR(13)+CHAR(10) 
FROM nodinitelogdatabases l
ORDER BY [Database]
Print @@Rowcount
Print @sql
```

*This script creates another script that you can use to update the **Server** column in the **LogTables** table in the [Configuration Database][ConfigDB].*

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>If you are running Azure SQL Managed Instance and you are moving to another managed instance, you must update the <code>HOST</code> column accordingly.</p></div>
</aside>

The [Add or manage Log Database][] page describes each field of a Log Database entry, including the **Remote Server** option.

## Step 4: Update the Pickup Service

This step applies only when the [Pickup Service][] writes directly to the Configuration Database (**Use Configuration DB** checked). Update its **Config DB Connection String**, as described in [Use Configuration DB (Direct Write)][Pickup Direct Write]. With the default destination, the [Log API][], nothing changes.

## Step 5: Update Monitoring Agent Databases

If you are also moving the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Monitoring Databases][Agent Database], update the connection string of each agent that uses one:

* **Agents installed from the Portal package** — in the Nodinite Portal, [Step 5: Agents][Portal Agents], open the agent card and change **Agent database connection string** (and **Database type** when the target is an Always On group or a Managed Instance). If **Prompt for connection string during install** is on, pass the new value with `--agent-connection-string` instead. Then run the update; `install-agent` updates one agent.
* **Agents installed with an MSI** — change the Monitoring Database connection string through the agent's [Remote Configuration][]. See [Agent Database][] for the details.

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

**Configuration updated?** Continue with:  

* <i class="fal fa-circle-check" aria-hidden="true"></i> [Validation and DACPAC Registration][] - Test and register databases  

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

* <i class="fal fa-truck-moving" aria-hidden="true"></i> [Database Migration Overview][] - Hub page and decision tree  
* <i class="fal fa-clipboard-check" aria-hidden="true"></i> [Planning][] - Pre-flight checklist  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Local Disk Move][] - For same SQL instance  
* <i class="fal fa-server" aria-hidden="true"></i> [Remote SQL Instance Move][] - For different SQL instance  
* <i class="fal fa-flag-checkered" aria-hidden="true"></i> [Post-Migration Steps][] - Cleanup and optimization  
* <i class="fal fa-plug" aria-hidden="true"></i> [SQL Server Connection Strings][Connection Strings]  
* <i class="fal fa-key" aria-hidden="true"></i> [Secret Management][]  

[Add or manage Log Database]:https://docs.nodinite.com/administration/settings/log-databases/add-or-manage-log-database/
[Agent Database]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/agent-database/
[Agents step]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/05-agents/
[ConfigDB]:https://docs.nodinite.com/core-services/configuration-database/overview/
[Connection Strings]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/connection-strings/
[Core Services]:https://docs.nodinite.com/core-services/overview/
[Database Migration Overview]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/overview/
[Linked Servers]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/linked-servers/
[Local Disk Move]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/local-disk-move/
[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Log Database Naming]:https://docs.nodinite.com/core-services/log-databases/overview/#fa-tag-log-database-naming
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Migrating v6 to v7 on New Hardware]:https://docs.nodinite.com/install-and-update/getting-started/version-6/migrating-v6-to-v7-on-new-hardware/
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[Nodinite Support]:https://support.nodinite.com
[Pickup Direct Write]:https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/getting-started/configuration/#use-configuration-db-direct-write
[Pickup Service]:https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/overview/
[Planning]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/planning/
[Planning SqlServer]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/planning/#sqlserver-system-parameter
[Portal Agents]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/05-agents/#net-10-agents-without-gmsa-support
[Portal CLI Arguments]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/07-install-the-generated-package/#passing-arguments-when-needed
[Portal SQL Server]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/03-infrastructure/#configure-sql-server-connectivity
[Post-Migration Steps]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/post-migration-steps/
[Recreate Linked Servers]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/overview/#fa-link-recreate-linked-servers-after-a-sql-server-upgrade
[Remote Configuration]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/how-do-i-configure-a-monitor-agent/
[Remote SQL Instance Move]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/remote-sql-instance-move/
[Secret Management]:https://docs.nodinite.com/install-and-update/troubleshooting/secret-managment/
[SqlServer]:https://docs.nodinite.com/administration/settings/system-parameters/sqlserver/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Updating Nodinite v7]:https://docs.nodinite.com/install-and-update/getting-started/version-7/updating-nodinite-v7/
[Validation and DACPAC Registration]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/validation-and-dacpac-registration/