Moving or migrating
Command Centre Databases (SQL) › Moving or Migrating DB on different location
This page answers
How do you move the Command Centre databases to a different drive or folder?
What SQL queries reattach them at the new location?
Before starting, best practice is to always have a site backup and a working recovery code.
Stop the CCFT services.
Detach the databases and move the
.mdf/.ldffiles to the desired location.

At the new location, open the folder's Properties > Security and change the user's privilege to Allow.

Open SSMS (SQL Server Management Studio) and run the attach queries below. The
N'...'prefix is a fixed format;E:represents the new drive location followed by the folder path.


Start the CCFT services.
Reminder: Once you detach the database again after this, you will not be able to attach it using CCFT Service Manager. You will need to use SSMS to attach it.
🔗 Related
Databases - Detaching and Reattaching. The CCFTServiceManager path and its non-default-location limit.
Databases - An Overview of Command Centre and SQL. Service-account rights on the new folder.
Last updated
Was this helpful?
