Skip to content
Documentation
Updated 10 minutes to read
Markdown

Migrate your Nodinite SQL Server databases with confidence using this comprehensive guide. Whether you're moving to a new disk volume or migrating to an entirely new SQL Server instance, we'll guide you through every step of the process.

  • ✅ Step-by-step planning checklists
  • ✅ Scenario-specific migration paths (local disk or remote instance)
  • ✅ Secure configuration updates through the Nodinite Portal and the CLI
  • ✅ Encrypted linked servers after a move or in-place upgrade to a newer SQL Server
  • ✅ Complete validation and testing procedures
  • ✅ Post-migration optimization and monitoring
flowchart TD A["fa:fa-database Where are your databases now?"] --> B{"What is your target?"} B -->|"Same SQL instance, different disks"| C["fa:fa-hard-drive Local Disk Move"] B -->|"Different SQL instance, same or different server"| D["fa:fa-server Remote SQL Instance Move"] C --> E["Fast path: detach and reattach"] D --> F["Full migration: backup and restore or detach and attach,
then new connection string and SqlServer parameter"] style C fill:#93d16d style D fill:#E47528

Diagram: pick the Local Disk Move (green) when the SQL Server instance stays the same, and the Remote SQL Instance Move (orange) for any other instance, including SQL Server version upgrades and consolidations.

Every migration follows these core phases, regardless of your scenario:

flowchart LR P1["fa:fa-clipboard-check 1. Planning"] --> P2["fa:fa-truck-moving 2 or 3. Move the databases"] P2 --> P4["fa:fa-gear 4. Configuration changes"] P4 --> P5["fa:fa-circle-check 5. Validation"] P5 --> P6["fa:fa-flag-checkered 6. Post-migration"] style P1 fill:#2678BD style P2 fill:#E47528 style P4 fill:#9E59BB style P5 fill:#93d16d style P6 fill:#3F827B

Diagram: the six guides in order: Planning, Local Disk Move or Remote SQL Instance Move, Configuration Changes, Validation and DACPAC Registration, and Post-Migration Steps, covering the Configuration Database, the Log Databases, and the Agent Database.

Verify prerequisites, inform stakeholders, and prepare the target environment before you touch anything: 1. Planning.

Stop the Nodinite Core Services and move the data. The steps depend on your scenario:

Point Nodinite to the new database location: the connection string in the Nodinite Portal (Step 3: Infrastructure), the SqlServer System Parameter, and the Log Database entries: 4. Configuration Changes.

Phase 4: Validation and DACPAC Registration

Section titled “Phase 4: Validation and DACPAC Registration”

Verify that the Core Services start and that the databases are operational and registered: 5. Validation and DACPAC Registration.

Back up, monitor, and tune the performance of the new environment, then decommission the old one: 6. Post-Migration Steps.

Scenario Start Here Key Phases
Moving to different disks on same SQL instance Local Disk Move Stop services → Detach → Move files → Reattach → Restart
Moving to different SQL Server instance Planning → Remote Move Plan → Prepare instance → Backup → Restore → Configure → Validate
Upgrading to newer SQL Server version Planning → Remote Move Verify compatibility → Prepare → Backup → Restore → Recreate linked servers → Test
In-place upgrade of SQL Server Recreate Linked Servers Stop services → Upgrade SQL Server → Drop and recreate linked servers → Verify → Restart
Consolidating multiple instances Planning → Remote Move Plan carefully → Prepare → Backup each → Restore to new instance

Use the Local Disk Move when moving to different disk volumes on the same SQL Server instance.

  • ✅ Fast and simple
  • ✅ No connection string change needed (server name unchanged)
  • ✅ Lower risk
  • ✅ Minimal downtime
  1. Stop the Nodinite Core Services
  2. Detach databases from current disks
  3. Move database files to new disks
  4. Reattach databases
  5. Restart the Core Services

Use the Remote SQL Instance Move when moving to any different SQL Server instance (new server, upgrade, consolidation).

  • ✅ Complete infrastructure refresh
  • ✅ Version upgrades supported
  • ✅ No downtime on old server
  • ✅ Easy rollback (old server still available)

What Happens in a Remote SQL Instance Move

Section titled “What Happens in a Remote SQL Instance Move”
  1. Plan and prepare new SQL instance
  2. Stop the Nodinite Core Services
  3. Backup databases from old instance
  4. Restore to new instance and recreate the linked servers
  5. Update the Nodinite configuration (connection string, SqlServer System Parameter, Log Database entries)
  6. Validate and test
  7. Decommission old instance

Nodinite v7 protects connection strings with certificate-based encryption stored in the Windows Certificate Store (see Secret Management). You always enter the new connection string unencrypted, in the Nodinite Portal or as a CLI argument, and Nodinite protects it automatically. Configuration Changes shows every place to update.

Section titled “ Recreate Linked Servers After a SQL Server Upgrade”

Nodinite always reads the Log Databases through Linked Servers, even when they sit on the same SQL Server instance as the Configuration Database. A linked server definition stores the OLE DB provider and its connection options, and these changed in newer SQL Server versions:

  • SQL Server 2022 and later no longer ship the SQL Server Native Client (SQLNCLI, SQLNCLI11) provider that older linked servers use.
  • The replacement, the Microsoft OLE DB Driver for SQL Server (MSOLEDBSQL), encrypts the connection by default and validates the SQL Server certificate.

A linked server that comes along from the older SQL Server, kept by an in-place upgrade or scripted in SSMS and run on the new instance, therefore keeps its old options and can fail. When it does, the Logging Service can't query or create Log Databases, and searches in the Web Client return no Log Events.

flowchart LR Old["fa:fa-link Old linked server
SQLNCLI, no encryption"] --> Upgrade{"fa:fa-arrow-up-right-dots Newer SQL Server
moved or upgraded in place"} Upgrade -->|"kept or scripted as is"| Fail["fa:fa-plug-circle-xmark Linked server queries fail
no Log Databases"] Upgrade -->|"dropped and recreated"| New["fa:fa-lock MSOLEDBSQL
Encrypt=Yes"] New --> OK["fa:fa-database Nodinite reaches the Log Databases"] style Old fill:#FFD525 style Fail fill:#c33d34 style New fill:#2678BD style OK fill:#93d16d

Diagram: an old linked server (yellow) carried over to a newer SQL Server fails (red); dropping and recreating it with the new provider and encryption options (blue) lets the Configuration Database reach the Log Databases again (green).

Scenario Recreate the linked servers?
In-place upgrade to a newer SQL Server version ✅ Yes, all of them
Remote SQL Instance Move to a newer SQL Server version ✅ Yes, create them with the new options; never run a script of the old ones unchanged
Remote SQL Instance Move to the same SQL Server version ✅ Yes, create them on the new instance (see Planning)
Local Disk Move on the same instance ❌ No, the linked servers stay as they are

Recreate every linked server Nodinite uses: the one for localhost (or the server name), the ones for other instances that host Log Databases, and the ones for BizTalk Server and other monitored databases. With Always On Availability Groups or a failover cluster, recreate them on every node. The full list is in Required Linked Servers for Nodinite.

Setting Old linked server New linked server
Provider SQLNCLI or SQLNCLI11 (SQL Server Native Client) MSOLEDBSQL (Microsoft OLE DB Driver for SQL Server)
Encryption Optional (off) Mandatory: Encrypt=Yes
Trust Server Certificate Not used TrustServerCertificate=Yes, unless SQL Server has a certificate the Nodinite servers trust
Security context Be made using the login's current security context Unchanged
RPC and RPC Out true Unchanged, see Linked Server RPC and RPC Out

Run this query in SSMS against the master database on the new or upgraded instance, and note each linked server's name:

SELECT name, provider, data_source, provider_string
FROM sys.servers
WHERE is_linked = 1;

Keep the names unchanged. Nodinite reads the linked server name from the LinkedServerName property of the SqlServer System Parameter, and the Server column of every Log Database entry must match a linked server name.

Stop the Logging Service and the Monitoring Service first, unless you're in the middle of a migration where the Core Services are already stopped. Then drop the linked server, here localhost:

EXEC master.dbo.sp_dropserver @server = N'localhost', @droplogins = 'droplogins';
GO

Step 3: Create the Linked Server With Encryption

Section titled “Step 3: Create the Linked Server With Encryption”

In SSMS, right-click Server Objects › Linked Servers › New Linked Server:

  1. On the General page, enter the linked server name, select SQL Server as the server type, set Encryption to Mandatory, and check Trust Server Certificate (see the tip above).
  2. On the Security page, select Be made using the login's current security context.
  3. On the Server Options page, set RPC and RPC Out to True.

SSMS New Linked Server dialog with Encryption set to Mandatory and Trust Server Certificate checked
Example of the encryption options on the General page of a new linked server for LOCALHOST.

Or run the script below; it creates the same linked server for localhost. Replace localhost in every statement with your linked server name, such as SERVERNAME\INSTANCENAME or an Always On listener name:

USE [master]
GO
EXEC master.dbo.sp_addlinkedserver @server = N'localhost', @srvproduct = N'', @provider = N'MSOLEDBSQL', @datasrc = N'localhost', @provstr = N'TrustServerCertificate=Yes;Encrypt=Yes'
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname = N'localhost', @useself = N'True', @locallogin = NULL, @rmtuser = NULL, @rmtpassword = NULL
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'collation compatible', @optvalue = N'false'
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'data access', @optvalue = N'true'
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'dist', @optvalue = N'false'
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'pub', @optvalue = N'false'
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'rpc', @optvalue = N'true'
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'rpc out', @optvalue = N'true'
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'sub', @optvalue = N'false'
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'connect timeout', @optvalue = N'0'
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'collation name', @optvalue = NULL
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'lazy schema validation', @optvalue = N'false'
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'query timeout', @optvalue = N'0'
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'use remote collation', @optvalue = N'true'
GO
EXEC master.dbo.sp_serveroption @server = N'localhost', @optname = N'remote proc transaction promotion', @optvalue = N'true'
GO

@useself = N'True' is the login's current security context, and @provstr holds the encryption options. Repeat the script for every linked server you listed in Step 1.

Query through the linked server, then start the Logging Service and the Monitoring Service again:

SELECT name FROM [localhost].[master].[sys].[databases];
EXEC sp_helpserver;

The query lists the databases on the linked instance, and sp_helpserver shows rpc and rpc out for the linked server. If the query fails with a certificate error, such as The certificate chain was issued by an authority that is not trusted, check Trust Server Certificate or install a trusted certificate on SQL Server. For other errors, see Troubleshooting on the Linked Servers page.

This guide covers migration of:

Migration Type Planning Time Service Downtime Total Duration
Local Disk Move 1-2 hours 30-60 minutes 2-3 hours
Remote SQL Instance Move (same server) 2-4 hours 1-2 hours 4-6 hours
Remote SQL Instance Move (different server) 4-8 hours 2-4 hours 6-12 hours
SQL Server Version Upgrade 6-12 hours 2-4 hours 8-16 hours

Times vary based on database size, network speed, and team experience.

  • ✅ Always Plan First — Never rush into migration without a clear plan
  • ✅ Test in Staging — Validate the process in a non-production environment
  • ✅ Backup Everything — Full backup before any migration
  • ✅ Notify Stakeholders — Inform users about planned downtime
  • ✅ Have a Rollback Plan — Know how to revert if issues occur
  • ✅ Monitor After Migration — Watch for issues in the first 24-48 hours
  • ✅ Document Changes — Keep records of what was moved and when

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...