Domino Automation - How to Migrate from SQL 2019 towards SQL 2022 (.bak)

Safety Note

This document applies to:

  • The Domino Printing group
  • The IT department of Domino's customers
  • The end user of the Domino Designer software
  • The end user of the Domino Automation software

Description

This document aims to outline the steps to migrate SQL 2019 towards SQL 2022.

✍️ NOTE

  • Administrative rights are required to perform migration operations.
  • The server will need to be restarted.
    • It's important to plan accordingly, either by choosing an appropriate time for migration or by notifying relevant colleagues about the upcoming server restarts.

Step 1

Perform a Manual Backup (.bak) on Server

✍️ NOTE

In this scenario, the Automation project name to backup DA_RSERIES
  1. Open SQL Management Studio



  2. Connect to the instance

    Several possibilities to enter in "Server Name" for the connection:
    1. SERVER_NAME\INSTANCE_NAME
    2. SERVER_IP\INSTANCE_NAME

  3. After connecting, the following page appears



  4. Left-click on the "+" located next to "Databases":



    You need to backup both the database and the metrics database, ie: DA_RSERIES & DA_RSERIES_Metrics

  5. Right-click on DA_RSERIES, then "Tasks", then "Back Up…"



  6. Verify backup directory and click “OK”



  7. The following message will confirm whether the backup worked:



  8. You may verify the directory itself:



  9. Right-click on DA_RSERIES_Metrics, then "Tasks", then "Back Up…"



  10. Verify backup directory and click “OK”



    The following message will confirm whether the backup worked:



  11. You may verify the directory itself



  12. You can save the backup on an external or backup hard drive.

Step 2

UNINSTALL SQL SERVER 2019

✍️ NOTE

Care must be taken to delete only the instance used by Domino Automation. Otherwise, it may affect other software solutions and have significant consequences for the client and their server.

 

  1. After backing up the entire Domino Automation database, go to "Control Panel" / "Uninstall a program."

  2. Uninstall "Microsoft SQL Server 2019 (64-bit)":



  3. Click on "Delete":

  4. In the drop-down menu, select the instance used by Domino Automation:

  5. By default, the name used is MSSQLSERVER. It is necessary to confirm with the client's IT service to ensure that the correct instance is being deleted.

  6. Check the following two items and click "Next" to proceed with the uninstallation:

    [x] Database Engine Services
    [x] SQL Server Replication

  7. Click "Remove" and wait for the instance to be uninstalled.



  8. Close the setup at the end of the uninstallation.



  9. Restart the server.

Step 3

DOWNLOAD SQL EXPRESS 2022

  1. Navigate to Microsoft® SQL Server® 2022 Express

  2. Select language, i.e: English and Download



  3. Copy the file “SQL2022-SSEI-Expr.exe” in a certain local directory, i.e: C:\Temp\2022\EN

Step 4

CREATE MANUALLY AN INSTANCE: DASQL

  1. Reference the following guide: How to manually create an SQL Instance named "DASQL"

  2. Create an instance named: DASQL

Step 5

Restore the Database through .bak Methodology on New Server

  1. Open Windows explorer



  2. Connect the backup device that includes the .bak files of the database



  3. Copy the backups



  4. Go to the following directory:

    C:\Program Files\Microsoft SQL Server\MSSQL16.DASQL\MSSQL\BackupC:\Program Files\Microsoft SQL Server\MSSQL16.DASQL\MSSQL\Backup

  5. Then paste the backups



  6. Open SQL management studio



  7. Connect to the instance



  8. Several possibilities to enter in "Server Name" for the connection

    1. SERVER_NAME\INSTANCE_NAME
    2. SERVER_IP\INSTANCE_NAME

  9. After connecting, the following page appears



  10. Left-click on the "+" located next to "Databases"



  11. Right-click on "Databases" then select "Restore Database"



  12. Click on "Device"



  13. Select the three dots "…"



  14. Click on "Add"



  15. Go to the directory:

    C:\Program Files\Microsoft SQL Server\MSSQL16.DASQL\MSSQL\Backup

  16. Choose the first backup file: DA_RSERIES_DATE_TIME.bak



  17. Confirm with "OK".



    Go to the next menu by pressing the button "OK"

  18. On the left-hand side, select “files”:



  19. Toggle [✔️] "Relocate all files to folder"

  20. Click on "OK" to start the restoration of the first database

    The following message appears:



  21. Right-click again on "Databases" and then select "Restore Database"



  22. Choose "Device" again



  23. Then select the three dots "..."



  24. Choose "Add"



  25. Navigate to the following directory:

    C:\Program Files\Microsoft SQL Server\MSSQL16.DASQL\MSSQL\Backup

  26. Select the second backup file: DA_RSERIES_Metrics_DATE_TIME.bak



  27. Confirm with "OK"

  28. Continue by pressing "OK" again



    Proceed to the next menu by using the "OK" button.

  29. On the left-hand side, select Files

  30. Toggle "Relocate all files to folder"

  31. Click on "OK" to start the restoration of the Metrics database

    The following message appears:



  32. Validate with "OK"

  33. On the left menu, the database should appear as follows:

That means the system has been sucesfully migrated and restored.

Step 6

Configure Database Owner on New Server

✍️ NOTE

On Domino Automation, if the following message pops up while opening a project

“Owner of database <project_name> must be ‘TeeDbo’ or another local MSSQL login”

The account “TeeDbo” has to be configured as the DBowner & Enable Broker.

 

  1. Open SQL management studio



  2. Connect to your SQL server’s instance



    1. SERVER_NAME\INSTANCE_NAME
    2. SERVER_IP\INSTANCE_NAME

  3. Right-click, then properties on the <project_name>



  4. Navigate to the “Files” menu



  5. The database owner is blank, select the triple dots […]



  6. Click on “Browse…”



  7. Select “TeeDbo”



  8. Confirm with “OK”

  9. Before validating, click on "Options"



  10. Scroll to the bottom, the "Broker" must be Enabled



  11. Validate through “OK”

    Repeat the same steps for the Metric Database.

  12. Right-click, then select properties on the <project_name_Metrics>



  13. Navigate to the “Files” menu



  14. The database owner is blank, select the triple dots […]



  15. Click on “Browse…”