For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

  1. Stop the CCFT services.

  2. Detach the databases and move the .mdf / .ldf files to the desired location.

SSMS showing the CCFTCentral and CCFTEvent data and log files to move
  1. At the new location, open the folder's Properties > Security and change the user's privilege to Allow.

Windows folder Properties Security tab granting the CCFT service account Allow
  1. 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.

SSMS query window with the CREATE DATABASE CCFTEvent FOR ATTACH query
SSMS query window with the CREATE DATABASE CCFTCentral FOR ATTACH query
  1. 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

Last updated

Was this helpful?