Moving an Address Book to Another SQL Server

Updated 1 year ago by Patrick Wong

Steps to move your Maximizer Address Book from one SQL Server to another would depend on the version of Maximizer you are currently using.

The steps below require access to the database server hosting Maximizer as well as a good understanding of Microsoft SQL Server. It is recommended that you allow your Managed Service Provider or in-house IT staff to manage the migration of your Maximizer database.

Maximizer CRM Enterprise 2020 or later

When moving a Maximizer database from one SQL server to another, and after restoring the database and connecting it to Maximizer, it is necessary to map the maximizer_system SQL login from the SQL server to the Maximizer Address Book as the maximizer_system user with the dbo database role.

 Before you begin, please do not delete the Maximizer database you intend to move from the list of available databases until this whole operation is complete. If you do this too early, you will lose the original passwords of its database users and will have to reset them. 

Steps:

  1. On the original server, use the SQL Server Management Studio to back up the database you intend to move.
  2. Copy the backup to the new SQL server.
  3. On the new server, open SQL Server Management Studio and restore the backup.
  4. Expand the restored database and select Security > Users.
  • You will see a maximizer_system user already on this database.
  1. Delete the maximizer_system user. If you get an error, do the following:
    1. Expand down to the now restored database and click on Storage > Full-Text catalogs.
    2. For each catalog shown, right-click on each and choose Properties.
    3. Under General, change Owner from maximizer_system to dbo.
    4. Once done for all full-text catalogs, try deleting the user again. It should succeed.
  2. Open Properties for maximizer_system SQL login.
  3. Select the User mapping page.
  4. Map the maximizer_system login to the Address Book with dbo role.
  5. If you have not already done so, you need to add the old SQL server as a linked server (ref: Create linked servers - SQL Server | Microsoft Docs).
  6. Run the following SQL query against the new SQL server MaConfig database to migrate the ability login with old passwords unto the new SQL server replacing <new sql server name> with the name of the new SQL server, <old sql server name> with the name of the old SQL server and replacing <database name> with the SQL database you are migrating:

INSERT INTO Login_Identity(UserID,[Database],[Server],Salt,[Hash],[Version],[Flags],LastPasswordChange) SELECT UserID,[Database],'<new sql server name>',Salt,[Hash],[Version],[Flags],LastPasswordChange FROM [<old sql server name>].Maconfig.[dbo].Login_Identity WHERE [Database] = '<database name>'

  1. Now you must employ this database in the new Maximizer CRM Enterprise 2020 environment using the following steps:
    1. Launch the Maximizer CRM Windows Administrator module on the Maximizer CRM Application Server.
    2. If prompted to log in click Cancel.
    3. Click File > New Address Book…
    4. Change the Database Server to the new SQL Server if need be. Click Next.
    5. Log in with your SQL server SQL Authentication credentials and click OK.
    6. Change Target Action to Employ an existing Maximizer database.
    7. From the Database name dropdown, choose the database you are migrating and click Next.
    8. Click Start.
    9. When the employing the database is complete, click Close.
    10. Click OK after the MASTER password has been set to CONTROL.
    11. When you get control back again, click File > Open Address Book…
    12. Select the database you just employed and click Open.
    13. Type in the MASTER password, which now is CONTROL, and click OK.
    You can now login to Web Access to this migrated database as the MASTER user with the password CONTROL. When you do this the first time, you will be prompted to change it. Make a new password.
    Other users should now be able to login to the new server with their current passwords.
If you removed the database from the list of databases on the old SQL server before following these steps, it will be necessary to go into the Maximizer Web Administrator and reset the passwords for each other user that isn’t MASTER and give the new password to those users. After they use that password for the first time in Web Access, they will be prompted to change the password to something else they would rather have.

 

Maximizer CRM Enterprise 2019 or earlier

If a Maximizer Address Book in version 2019 format is moved from one SQL server to another, after the Address Book is restored you must perform the following steps otherwise other users besides MASTER will not be able to log in.

Databases in Maximizer version 2019 (or earlier) requires

  1. In the Maximizer Windows Administrator, employ the database. The MASTER password will be set to CONTROL after this.
  2. Click Utilities > Upgrade Maximizer CRM V2017 / V2018 / V2019 Database…
  3. Proceed through the Upgrade process. You will be prompted for the MASTER user and password. Use CONTROL.
  4. Migration of passwords will begin. After the migration is completed, it will immediately upgrade the database as well.

When successfully logging in for the first time in Maximizer Web Access with their old password after upgrading, each user will be asked to set a new password.


How did we do?