Skip to main content
CRMGoldMine CRM

GoldMine – Detach and Attach the GoldMine Database

By May 24, 2019No Comments

As the GoldMine Administrator there may be times when you need to detach and/or attach the GoldMine database.  Some examples would be to move or copy the files, remove or add a restored database or when connecting other databased to the SQL Server.

To Detach a SQL Database:

  1. EVERYONE MUST BE LOGGED OUT OF GOLDMINE.
  2. Open SQL Server Management Studio.
  3. Connect to SQL Server.

The server name should be the LOCALMACHINENAME\INSTANCENAME

Authentication:  SQL Server Authentication

Login: sa username

Password: sa password

  1. Click the Connect
  2. Expand the Databases section in the Object Explorer on the left.
  3. Right-click on the database to detach and choose Tasks –> Detach. The Detach Database window opens.

  1. If there is a message that there are still active connections, check the box under Drop Connections.

  1. Click OK to detach the database.
  2. The database name (e.g, GoldMine) will be removed from the Databases list on the left. The data files are now disconnected from the SQL Server and can me moved, copied, etc.

To Attach a SQL Database:

  1. Open SQL Server Management Studio.
  2. Connect to SQL Server.

The server name should be the LOCALMACHINENAME\INSTANCENAME

Authentication:  SQL Server Authentication

Login: sa username

Password: sa password

  1. Click the Connect
  2. Right-click on the Databases section in the Object Explorer on the left and choose Attach. The Detach Database window will open.

  1. Click the Add The Locate Database Files window opens.
  2. Navigate to the folder the backup is in on the left and select the actual backup file on the right.

  1. The database will display under Databases to attach and the file details will display in the lower section. Click OK to attach the database.
  2. The database name (e.g, GoldMine) will be added to the Databases list on the left. The data files are now connected from the SQL Server and can used in applications and queries.
  3. If you don’t see the database name in the list and you did not receive an error, right-click on the Databases section and choose Refresh.
Becci MG

Author Becci MG

More posts by Becci MG

Leave a Reply

Skip to content