- 5 minutes to read

Configuration Changes

Information about the whereabouts of the Configuration Database and Logging Databases now needs to be updated in Nodinite.

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.

Note

This page covers Nodinite v7. Nodinite v6 is no longer supported; to move a v6 installation, follow Migrating v6 to v7 on New Hardware.

Understanding Where Nodinite Keeps the Database Locations

Nodinite 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.

flowchart TB Portal["fa:fa-cloud Nodinite Portal
Step 3: Infrastructure
connection string"] --> CLI["fa:fa-terminal CLI update
elevated PowerShell 7"] CLI --> Core["fa:fa-globe Core Services
protected connection string"] Core --> Config["fa:fa-database Configuration Database"] Config --> SqlServer["fa:fa-sliders SqlServer System Parameter
server and linked server names"] Config --> LogTables["fa:fa-table LogTables
Server and HOST per Log Database"] LogTables -->|"Linked Server"| Log["fa:fa-database Log Databases"] Pickup["fa:fa-inbox Pickup Service
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

Diagram: the places to update after a move. Blue is the connection string you set in the Nodinite Portal (Step 3: Infrastructure) and the CLI update that writes it into the Core Services; orange is what lives in the Configuration Database (the SqlServer System Parameter 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.

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
SqlServer System Parameter Configuration Database Any move to a different SQL Server instance Step 2
Log Database server names LogTables in the Configuration Database Log Databases moved to another instance Step 3
Pickup Service direct write Pickup Service configuration Only when Use Configuration DB is checked Step 4
Monitoring Database connection strings Nodinite Portal, on each agent card in the Agents step Monitoring Databases moved Step 5
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. 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).
  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; Nodinite protects it with certificate-based encryption (see Secret Management).

For formats, certificate validation, and Always On settings, see SQL Server 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 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 (names like the @prefix variable).

Change the @prefix, @oldServerName and @newServerName parameters as appropriate and run from the Configuration Database in SSMS. Log Databases created by Nodinite v6 keep their NodiniteLog_<Environment>_ names after an upgrade; see Log Database Naming.

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.

Important

If you are running Azure SQL Managed Instance and you are moving to another managed instance, you must update the HOST column accordingly.

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). With the default destination, the Log API, nothing changes.

Step 5: Update Monitoring Agent Databases

If you are also moving the Nodinite Monitoring Databases, update the connection string of each agent that uses one:

  • Agents installed from the Portal package — in the Nodinite Portal, Step 5: 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.

Next Steps

Configuration updated? Continue with: