---
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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> databases to other disk volumes on the **same** SQL Server instance, follow the quick guide below:

## Quick Reference

1. [Stop the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></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.

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

**Migration complete?** Continue with:  

* <i class="fal fa-gear" aria-hidden="true"></i> [Configuration Changes][] - Review what else to update  
* <i class="fal fa-circle-check" aria-hidden="true"></i> [Validation and DACPAC Registration][] - Testing and verification  

## <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-server" aria-hidden="true"></i> [Remote SQL Instance Move][] - For different SQL Server  
* <i class="fal fa-flag-checkered" aria-hidden="true"></i> [Post-Migration Steps][] - Cleanup and optimization  

[0]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/ConfigurationDatabase/SQLServerDatabaseDefaultLocations.png

[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/
[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/
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[LogLocations]:https://docs.nodinite.com/administration/settings/system-parameters/loglocations/
[Planning]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/planning/
[Post-Migration Steps]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/post-migration-steps/
[Remote SQL Instance Move]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/remote-sql-instance-move/
[RestartServices]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/remote-sql-instance-move/#restart-services
[StopServices]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/remote-sql-instance-move/#stop-services
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Validation and DACPAC Registration]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/validation-and-dacpac-registration/