Remote SQL Instance Move
Migrate your Nodinite databases to a different SQL Server instance with confidence using this comprehensive technical guide. Whether you're upgrading SQL Server versions, consolidating instances, or moving to new hardware, this guide provides the detailed steps and context you need for a successful migration.
Understanding the Migration Process
When moving Nodinite databases to a different SQL Server instance, you're performing a complete relocation of all database files and their associated configurations. This differs from a Local Disk Move where databases stay on the same instance.
Migration workflow from source to destination SQL Server instance. Stopping the Core Services (red) starts the downtime; the Configuration Changes (purple) point Nodinite to the new instance; restarting the Core Services (green) ends it.
What Gets Migrated
| Component | Description | Source Location | Destination Action |
|---|---|---|---|
| Configuration Database | Central Nodinite settings and parameters | Source SQL instance | Detach/backup → attach/restore on new instance |
| Log Databases | Message logging storage (one or many) | Source SQL instance | Detach/backup → attach/restore on new instance |
| DACPAC Registration | Database schema version tracking | msdb.dbo.sysdac_instances |
Must be re-registered on new instance, see Validation and DACPAC Registration |
| Service Accounts | Logging Service, Monitoring Service, and installation accounts | Windows/AD | Database owner permissions must be reapplied |
| Connection String | How the Core Services reach the Configuration Database | Nodinite Portal, Step 3: Infrastructure | Must be updated to point to new instance, see Configuration Changes |
Migration Approach: Detach/Attach vs Backup/Restore
| Aspect | Detach/Attach | Backup/Restore |
|---|---|---|
| Speed | Faster (direct file copy) | Slower (compression overhead) |
| SQL Version Compatibility | Same or newer version only | Any compatible version |
| Downtime | Shorter | Longer |
| Rollback | Harder (files moved) | Easier (source unchanged) |
| When to Use | Same/newer SQL version | Upgrading SQL version or prefer safety |
Tip
Recommended approach: Use detach/attach for same SQL Server versions (faster). Use backup/restore when upgrading SQL Server versions or when you want to keep the source instance operational during migration.
Stop Services
Before you proceed with the database move operation, stop all the Nodinite Core Services. Nodinite is not available for end-users during the move operation. On Windows Server, every Core Service, including the Logging Service and the Monitoring Service, is its own IIS web site with its own application pool.
Stop the Logging Service and the Monitoring Service
Stop these two first, so that no Log Events or Monitor Events are written during the move. Use the Stop button in Step 1 of the Update Log Database guide, under Administration › Settings › Log Databases in the Web Client, or stop their application pools in IIS Manager. The stop operation may take some time (0-120 seconds is common).
Stop the Remaining Application Pools
Stop the application pools of the other Core Services, such as the Web Client, Web API, and Log API. The names depend on your installation. Review the IIS Authentication settings user guide for additional information.

Example of IIS Application Pools management console.
Remove DACPAC Information from the Old Database Server
To make your old SQL environment as clean as possible, you will next remove the installed DACPAC version information for databases no longer in the instance.
You can either use the automated script below or the manual approach described below. If you go for the manual approach, the databases must still exist.
Tip
If you are decommissioning the old SQL Server environment then you can safely ignore this step.
The information about the currently installed DACPAC version is present in the Nodinite Administration | Tools | Nodinite Overview.

Example of DACPAC version information displayed in Nodinite Overview page.
Automated DACPAC Removal
Execute the following SQL command to remove DACPAC information for ALL databases that no longer exist on the instance. Run this script from SSMS against the master database:
-- Remove DACPAC information for databases no longer present on the instance
DELETE FROM msdb.dbo.sysdac_instances
WHERE instance_id NOT IN (
SELECT instance_id
FROM msdb.dbo.sysdac_instances dac
WHERE EXISTS (
SELECT 1 FROM sys.databases db
WHERE db.name = dac.instance_name
)
)
-- Verify deletion
SELECT COUNT(*) AS RemainingDACPACRecords FROM msdb.dbo.sysdac_instances
This script:
- Identifies DACPAC records for databases that no longer exist on the SQL instance
- Removes only the orphaned DACPAC information
- Preserves DACPAC records for databases that still exist
- Returns the count of remaining DACPAC records for verification

Example of empty DACPAC version information after removal.
Manual DACPAC Removal per Database
If you prefer the manual approach, you can remove each database's Data-tier application using SSMS. On the old SQL Server instance; Right-click on each Nodinite database (those part of the move):

Example of 'Delete Data-tier Application' context menu option in SSMS.
Then, the 'Delete Data-tier Application' Wizard will start:

Example of Delete Data-tier Application wizard introduction screen.
Click the Next button for the Summary

Example of Delete Data-tier Application wizard summary screen.
Click the Next button for the Finish

Example of Delete Data-tier Application wizard completion screen.
Repeat this step for ALL Nodinite log- and configuration databases.
Detach Databases
Please make a note of who is the DBOwner on each database to be moved prior to detaching them. This information may come in handy in later steps.
If your new SQL instance is compatible, it is faster to detach and later re-attach the databases.
- Detach the databases included in the move operation with the 'drop existing connections option' checked.
- Copy or move the data files to the new destination.
- Attach the data files to the new SQL Server instance.
Important
If your new environment cannot attach the old files, you must perform a backup/restore operation. Keep the database names unchanged: the Configuration Database lists every Log Database by name.
Apply User Rights
Next, you need to fix/adjust the privileges set on the re-attached or restored databases.
Configuration Database
Please make sure to set the Nodinite install account (the account that runs the CLI) as the database owner (DBO) on the Nodinite Configuration Database. The full rights list is in the Configuration Database Prerequisites.
Logging Databases
For each Logging Database, make sure to make the account used for the Logging Service the database owner (DBO). The full rights list is in the Logging Service Prerequisites, and SQL Server Sysadmin Requirements explains which rights the Logging Service needs to create new Log Databases on the new instance.
Recreate the Linked Servers
The Configuration Database reaches the Log Databases through Linked Servers, so create them on the new instance with the same names as before. On a newer SQL Server version (SQL Server 2022 and later), create them with the MSOLEDBSQL provider and encryption; a script of the old linked servers fails there. Follow Recreate Linked Servers After a SQL Server Upgrade.
Restart Services
After completing all configuration changes and validation steps, start the Core Services again:
- Start the application pools of the Web API, Web Client, Log API, and the other Core Services. Review the IIS Authentication settings user guide for additional information.
- Start the Logging Service and the Monitoring Service, with the Start button in Step 5 of the Update Log Database guide or in IIS Manager.
Next Steps
Database preparation complete? Continue with:
- Configuration Changes - Point Nodinite to the new SQL Server instance
Related Topics
- Database Migration Overview - Hub page and decision tree
- Planning - Pre-flight checklist
- Local Disk Move - For same SQL instance
- Validation and DACPAC Registration - Testing and verification
- Post-Migration Steps - Cleanup and optimization
- Upload and restore SQL Managed Instance .bak using Azure Blob Storage