---
title: "Local Disk Move: Moving Databases Within the Same SQL Server Instance"
description: Quick reference guide for moving Nodinite databases to different disks on the same SQL Server instance.
---

# Local Disk Move

If you intend to move the :Nodinite: databases to other disk volumes on the **same** SQL Server instance, follow the quick guide below:

## Quick Reference

1. [Stop the :Nodinite: Core Services][StopServices] (on Windows Server, each one is its own [IIS][] web site)  
2. Detach databases to be moved (with drop existing connections options set). Make sure to read the Microsoft [Database Detach and Attach (SQL Server)](https://learn.microsoft.com/en-us/sql/relational-databases/databases/database-detach-and-attach-sql-server?view=sql-server-2017)<sup>:fa-arrow-up-right-from-square:</sup> user guide first  
3. Move the database files locally to the new destination  
4. Attach the databases  
5. [Review the default paths for Data and Log files](#review-default-paths-for-data-and-log-files-advanced-disk-schemes-only)  
6. [Restart the Core Services][RestartServices]  

## Visual Overview

<div class="mermaid">
graph LR
  subgraph "After"
    roSQL2[fal:fa-database SQL Server instance]
    roD2[fal:fa-hard-drive M:\ DATA]
    roE2[fal:fa-hard-drive N:\ LOG]
    roSQL2 --> roD2
    roSQL2 --> roE2
  end
  subgraph "Before"
    roSQL[fal:fa-database SQL Server instance]
    roD[fal:fa-hard-drive D:\ DATA]
    roE[fal:fa-hard-drive E:\ LOG]
    roSQL --> roD
    roSQL --> roE
  end
</div>

*Example of a local move of the [Configuration Database][ConfigDB] and [Log Databases][] from one set of disks to another on the same SQL Server instance. The server name doesn't change, so the connection string stays the same.*

## Review Default Paths for Data and Log Files (Advanced Disk Schemes Only)

This step applies **ONLY if you are using an advanced rotating disk scheme** with the [LogLocations][] system parameter.

On the new disks, you might be using other **default** disk volumes compared to the old environment. The [Logging Service][] creates new Log Databases in the folders from [LogLocations][], or in the SQL Server defaults when it is empty.

![SQL Server Database Settings page with the default data and log file locations][0]  
*Example of the SQL Server default locations for data and log files, used for new Log Databases when LogLocations is empty.*  

If you have configured multiple disk volumes using the advanced disk scheme, update the [System Parameter][System Parameters] [LogLocations][] to reflect the new disk volumes and file paths. Refer to the [LogLocations][] documentation for detailed configuration examples and best practices.

## :fa-hand-point-right: Next Steps

**Migration complete?** Continue with:  

* :fa-gear: [Configuration Changes][] - Review what else to update  
* :fa-circle-check: [Validation and DACPAC Registration][] - Testing and verification  

## :fa-link-horizontal: Related Topics

* :fa-truck-moving: [Database Migration Overview][] - Hub page and decision tree  
* :fa-clipboard-check: [Planning][] - Pre-flight checklist  
* :fa-server: [Remote SQL Instance Move][] - For different SQL Server  
* :fa-flag-checkered: [Post-Migration Steps][] - Cleanup and optimization  

[0]:{ndm}/Documentation%20Pictures/IM/CoreServices/ConfigurationDatabase/SQLServerDatabaseDefaultLocations.png

[ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Configuration Changes]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Database%20Migration/4.%20Configuration%20Changes.md
[Database Migration Overview]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Database%20Migration/Overview.md
[IIS]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Overview.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[LogLocations]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogLocations.md
[Planning]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Database%20Migration/1.%20Planning.md
[Post-Migration Steps]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Database%20Migration/6.%20Post-Migration%20Steps.md
[Remote SQL Instance Move]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Database%20Migration/3.%20Remote%20SQL%20Instance%20Move.md
[RestartServices]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Database%20Migration/3.%20Remote%20SQL%20Instance%20Move.md#restart-services
[StopServices]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Database%20Migration/3.%20Remote%20SQL%20Instance%20Move.md#stop-services
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Validation and DACPAC Registration]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Database%20Migration/5.%20Validation%20and%20DACPAC%20Registration.md