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

Detaching and reattaching

Command Centre Databases (SQL) › Detaching and Reattaching

This page answers

  • How do you detach and reattach the Command Centre databases?

  • Which tool applies to which Command Centre version?

  • What are the restrictions on backup file locations?

Important: If you are detaching or attaching databases from the SQL instance, stop the Command Centre services first.


Version 6 and above: CCFTServiceManager

Version 6 and above ships a utility called CCFTServiceManager.exe. On the install media it is in the Utilities directory; later versions install it to the Bin folder by default:

C:\Program Files (x86)\Gallagher\Command Centre\Bin

The utility does many things; here it detaches and attaches the databases from the SQL instance.

CCFTServiceManager showing the detach-database option
CCFTServiceManager showing the attach-database option

Note: If the databases are not in the default location, the utility detaches fine but will not reattach. See Databases - Structure for the default Data folder path.

7.70 and later: recovery code needed for attach

Attaching databases to a system that did not previously have those databases requires the Recovery Code tool in the Bin folder.


Systems 5.21 and older: DB batch files

For older systems, use the Database Batch Files on the install media under:

Copy the entire DB Batch Files folder (including the folder itself) to the install path for early Command Centre versions:

Stop the Command Centre services, then run DetatchDB.bat to detach the databases from the SQL instance. The databases themselves are located at:

Copy the databases to a safe location. Run AttachDB.bat to reattach them.

Note: If the databases are not in the default location, the batch file detaches fine but will not reattach; you will have to alter the batch file to suit.


Backups (.FTBackup)

When you create a backup using the Command Centre backup functionality, it makes a copy of CCFTCentral.mdf in the form filename.FTBackup. These backup files are self-executing: double-clicking one launches the backup-restore utility.

Note: Backups cannot be restored from user-specific folders (Desktop, My Documents, Downloads) or other restricted locations such as the root of the C: drive.


🔗 Related

Last updated

Was this helpful?