---
title: "Remote SQL Instance Move: Migrating Nodinite to a Different SQL Server"
description: Step-by-step guide for migrating Nodinite v7 databases to a different SQL Server instance. Covers stopping the Core Services, DACPAC cleanup, detach/attach vs backup/restore, and database owner rights.
---

# Remote SQL Instance Move

Migrate your <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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.

## <i class="fal fa-sitemap" aria-hidden="true"></i> Understanding the Migration Process

When moving <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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.

<div class="mermaid">
flowchart TB
  subgraph Source["fa:fa-server Source SQL Instance"]
    direction LR
    B["fa:fa-stop Stop Core Services"] --> C["fa:fa-database Detach or Backup DBs"]
    C --> D["fa:fa-truck Transfer Files"]
  end
  subgraph Destination["fa:fa-server Destination SQL Instance"]
    direction LR
    F["fa:fa-database Attach or Restore DBs"] --> G["fa:fa-key Fix Permissions"]
    G --> H["fa:fa-gear Update Configuration"]
    H --> I["fa:fa-play Restart Core Services"]
  end
  Source --> Destination
  style B fill:#c33d34
  style H fill:#9E59BB
  style I fill:#93d16d
</div>

*Migration workflow from source to destination SQL Server instance. Stopping the [Core Services][] (red) starts the downtime; the [Configuration Changes][] (purple) point <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> to the new instance; restarting the Core Services (green) ends it.*

### <i class="fal fa-puzzle-piece" aria-hidden="true"></i> What Gets Migrated

|Component|Description|Source Location|Destination Action|  
|---|---|---|---|  
|[Configuration Database][ConfigDB]|Central <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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][Connection Strings]|How the [Core Services][] reach the Configuration Database|Nodinite Portal, [Step 3: Infrastructure][Portal SQL Server]|Must be updated to point to new instance, see [Configuration Changes][]|  

### <i class="fal fa-code-compare" aria-hidden="true"></i> Migration Approach: Detach/Attach vs Backup/Restore

|Aspect|Detach/Attach|Backup/Restore|  
|---|---|---|  
|**Speed**|<i class="fal fa-bolt" aria-hidden="true"></i> Faster (direct file copy)|<i class="fal fa-clock" aria-hidden="true"></i> 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|  

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p><strong>Recommended approach:</strong> Use <strong>detach/attach</strong> for same SQL Server versions (faster). Use <strong>backup/restore</strong> when upgrading SQL Server versions or when you want to keep the source instance operational during migration.</p></div>
</aside>

## Stop Services

Before you proceed with the database move operation, stop all the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Core Services][]. <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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][Log Event] or [Monitor Events][] are written during the move. Use the **Stop** button in Step 1 of the [Update Log Database][Stop Services Button] guide, under **Administration** › **Settings** › [Log Databases][Log Databases Settings] 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.

![IIS Manager listing the Nodinite application pools][1]  
*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.

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>If you are decommissioning the old SQL Server environment then you can safely ignore this step.</p></div>
</aside>

The information about the currently installed DACPAC version is present in the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Administration | Tools | [Nodinite Overview][].  

![Nodinite Overview page listing the installed DACPAC versions][5]  
*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:

``` SQL
-- 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

![DACPAC version list showing 0.0.0.0 after the registration was removed][6]  
*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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> database (those part of the move):

![SSMS Tasks menu with the Delete Data-tier Application option][4]  
*Example of 'Delete Data-tier Application' context menu option in SSMS.*  

Then, the 'Delete Data-tier Application' Wizard will start:

![Delete Data-tier Application wizard introduction page][7]  
*Example of Delete Data-tier Application wizard introduction screen.*  

Click the Next button for the **Summary**

![Delete Data-tier Application wizard summary page][8]  
*Example of Delete Data-tier Application wizard summary screen.*  

Click the Next button for the **Finish**

![Delete Data-tier Application wizard finish page][9]  
*Example of Delete Data-tier Application wizard completion screen.*  

**Repeat this step for ALL <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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.

1. Detach the databases included in the move operation with the 'drop existing connections option' checked.
2. Copy or move the data files to the new destination.
3. Attach the data files to the new SQL Server instance.

<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 your new environment cannot attach the old files, you must perform a backup/restore operation. Keep the database names unchanged: the <a href="https://docs.nodinite.com/core-services/configuration-database/overview/">Configuration Database</a> lists every Log Database by name.</p></div>
</aside>

## 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> install account (the account that runs the CLI) as the **database owner** (DBO) on the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Configuration Database][ConfigDB]. The full rights list is in the [Configuration Database Prerequisites][].

### Logging Databases

For each [Logging Database][Log Databases], 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][ConfigDB] 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][Recreate Linked Servers].

## Restart Services

After completing all [configuration changes][Configuration Changes] and validation steps, start the Core Services again:

1. 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.
2. Start the [Logging Service][] and the [Monitoring Service][], with the **Start** button in [Step 5 of the Update Log Database guide][Start Services Button] or in IIS Manager.

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

**Database preparation complete?** Continue with:  

* <i class="fal fa-gear" aria-hidden="true"></i> [Configuration Changes][] - Point <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> to the new SQL Server instance  

## <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-circle-check" aria-hidden="true"></i> [Validation and DACPAC Registration][] - Testing and verification  
* <i class="fal fa-flag-checkered" aria-hidden="true"></i> [Post-Migration Steps][] - Cleanup and optimization  
* <i class="fal fa-cloud" aria-hidden="true"></i> [Upload and restore SQL Managed Instance .bak using Azure Blob Storage][Azure MI Restore]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Settings/IISAppPools.png
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogDatabases/DeleteDataTierApplicationTasksMenu.png
[5]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/DACPACVersionsInstalled.png
[6]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/DACPACVersionUnInstalled.png
[7]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/DeleteDataTierApplicationWizardOverview.png
[8]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/DeleteDataTierApplicationWizardSummary.png
[9]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/DeleteDataTierApplicationWizardFinish.png

[Azure MI Restore]:https://docs.nodinite.com/install-and-update/troubleshooting/azure/upload-and-restore-sql-managed-instance-bak-using-azure-blob-storage/
[ConfigDB]:https://docs.nodinite.com/core-services/configuration-database/overview/
[Configuration Changes]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/configuration-changes/
[Configuration Database Prerequisites]:https://docs.nodinite.com/core-services/configuration-database/getting-started/prerequisites/
[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/
[IIS]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/overview/
[IIS Authentication settings]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/iis-authentication-settings/
[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 Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[Log Databases Settings]:https://docs.nodinite.com/administration/settings/log-databases/overview/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Logging Service Prerequisites]:https://docs.nodinite.com/core-services/logging-service/getting-started/prerequisites/#what-sql-rights-does-the-logging-service-require
[Monitor Events]:https://docs.nodinite.com/core-services/monitoring-service/features/what-is-a-monitoring-event/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[Nodinite Overview]:https://docs.nodinite.com/administration/tools/nodinite-overview/
[Planning]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/planning/
[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
[SQL Server Sysadmin Requirements]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/sql-server-sysadmin-requirements/
[Start Services Button]:https://docs.nodinite.com/administration/settings/log-databases/update-log-database/#fa-forward-step-step-5-restart-services
[Stop Services Button]:https://docs.nodinite.com/administration/settings/log-databases/update-log-database/#fa-forward-step-step-1-stop-loggingmonitoring-services
[Validation and DACPAC Registration]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/validation-and-dacpac-registration/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/core-services/web-client/overview/