---
title: "MDS Upgrader v1.5.4 Installation & User Guide"
canonical: "https://servicedesk.maxgeo.com/space/MDS/2330984450/MDS%20Upgrader%20v1.5.4%20Installation%20%26%20User%20Guide"
format: markdown
---
<span style="color: #ffffff">**MDS Upgrader **</span>

> Macro (toc)

  


# > Macro (anchor)

Introduction

The MDS Upgrader is an application designed to upgrade the Maxwell Database Schema between versions 4.6.0 to 5.0.0. The MDS Upgrader will upgrade and validate the database objects (Tables, Views, PK, FK, etc) to ensure compliance with the standard Maxwell Database Schema. Custom Tables, Fields, etc. will not be check. All available hotfixes, if any, will be checked and downloaded from our FTP site at runtime and installed, if internet connection is available. If reserved base object definition has been customized, these customization might be overwritten during the upgrade process. Customization on non-reserved based object (such as views) will be preserved during the upgrade and review of these objects are required to manually apply any enhancements done on them.


For database schema prior to 4.6.1 SP1, the Upgrader will first try to upgrade the schema to 4.6.1 SP1. And once 4.6.1 SP1 upgrade is completed, it will continue to upgrade the schema to 5.0.0.


After upgraded your schema to 5.0.0, you can run the MDS Upgrader program again on your schema at any time to install any new hotfixes that’s available to 5.0.0.


The MDS Upgrader application include an option to upgrade Data Shed Admin database. It also has option to install the Grid Transformation components that requires by MDS 5.0.0+.

> ⚠️ **DB Modification**
> ⚠️ 
> ⚠️ Before any change is made to a user database (or system), maxgeo recommends competent staff should follow all standard database change management practices and never make untested changes to a production database.  
> ⚠️ Change, test and document all modifications on a test copy of your database to ensure results are as expected before implementing them on your live database. Always ensure a full backup is available in case rollback is required and follow all company change management procedures and practices.


# > Macro (anchor)

Installation

This section details the steps to install the MDS Upgrader.

1. double click on the setup.exe
2. Click on the **Run** button if following window pop up

![image](media://68b38781-d62b-4e7b-a7b4-aa912f36a34d)

1. Click on the **Next** button to continue

![A screenshot of a computer

Description automatically generated](media://f245268c-c287-4c6f-a263-dc31abe3a2bb)

1. Accept the license agreement, then click on the **Next** button to continue

![A screenshot of a computer screen

Description automatically generated](media://6e0bd0a4-8629-4571-9921-0fd2737c5a96)

1. Enter customer information as needed, then click on the **Next** button to continue

![A screenshot of a computer

Description automatically generated](media://bf62f468-8ac8-442f-8123-e6a4d94b7102)

1. Select setup type, then click on the **Next** button to continue

![A screenshot of a computer program

Description automatically generated](media://a719577c-2519-4970-9b6c-31c283d4ea05)

1. Click on the **Install** button to start installation

![A screenshot of a computer

Description automatically generated](media://1cc8695c-4961-481a-9113-af6c1f2f7a1b)


1. 
2. Click on the **Yes** button to continue

![Graphical user interface, text, application

Description automatically generated](media://83fb5cfd-4ff0-4c80-96e0-72a657d56a17)


1. Click on the **Finish** button to conclude the installation

![A screenshot of a computer

Description automatically generated](media://9f15b9af-e370-4092-b28a-761c86e44f8b)

  


# > Macro (anchor)

Run MDS Upgrader

Once installed, you will be able to start the program from Start 🡪 All programs 🡪 MDS Upgrader

![image](media://0b26e6b8-4e92-48af-93f0-ad4446f522a3)

  


# > Macro (anchor)

Run Upgrader Type - MDS

By selecting the MDS option the Maxwell Database Schema can be upgraded.

![A screenshot of a computer

Description automatically generated](media://15a4f844-d77a-43a9-91e3-5dcd05cf3cb6)


As shown on the above screenshot, the Upgrader will run the upgrade process in sections as listed on the left hand side of the application interface. When click on the Next button, if will move to the next section if the current section has been process successfully without error. Any error encountered needs to be fixed before the Upgrade can move to the next stage. Please refer to the Troubleshooting section later in this documentation for helps with troubleshooting some common errors one might encounter. 

To see brief descriptions of all changes the Upgrader will implement, click on the **ReadMe** button to see the schema change list for all versions, segmented by versions.

### > Macro (anchor)

Database Connection:

You configure the database that will be upgraded in this section (see screenshot above). Specify the Database Server, the credentials used to connect to that database server, and the Database Name for the database to be upgraded.

Please note the following important requirements:

1. Please ensure a VALID database backup exists PRIOR to run the Upgrader.
2. Please ensure the Server Authentication setting on the target database server is set to SQL Server and Windows Authentication mode. Otherwise, the upgrade will fail to connect.
3. Please ensure no other people or process is accessing the target database during the upgrade to prevent any potential issues.

### > Macro (anchor)

Pre Validation Checks:

This section runs any, if any, required pre validation checks. If any checks failed, please follow the prompt or error message to address them. 


![A screenshot of a computer

Description automatically generated](media://ccdbf083-865b-494d-af3d-7d4a2bf22735)

Depends on your current schema version, you might see the title of “MDS Upgrader 4.6.1 SP1” if you are currently on 4.6.1 and prior. Or you will see the “MDS Upgrader 4.6.2” if you are currently on 4.6.1 SP1 or later.


### > Macro (anchor)

Data Defaults:

When Upgrader modify an existing column to be NOT NULL, and if there is data already existing in that table with NULL value in it, a default value will be required for the change be able to be made. The Data Defaults section let you configure those default values to be used to update existing records. The Upgrader might suggest some default values as shown in the screenshot below. Supply or modify the values with your preference and click on the Save button before go to next section.

![A screenshot of a computer

Description automatically generated](media://b886814a-d17f-4ef9-a4a1-62cd9b8ba25a)


### > Macro (anchor)

Library Tables:

This section implements all the changes on library tables.

![A screenshot of a computer

Description automatically generated](media://5a4b7f6d-3c3d-406b-99e0-b1067435990d)

### > Macro (anchor)

System Tables:

This section implements System Table changes.

![A screenshot of a computer program

Description automatically generated](media://4a7e6525-f41f-4a04-aea6-33f79362cd89)

### > Macro (anchor)

General Tables:

This section implements all user table changes.

![A screenshot of a computer

Description automatically generated](media://413276ba-268b-4691-b303-d605f8e441d6)

### > Macro (anchor)

Stored Procedures:

This section implements Stored Procedure and Function changes.

![A screenshot of a computer

Description automatically generated](media://1fc05ecf-faa2-4d33-aa92-ad68cdeacd0f)

### > Macro (anchor)

Views:

This section implements View changes.

![A screenshot of a computer

Description automatically generated](media://43d98ade-33e3-4360-b99e-e52385f2ba89)

### > Macro (anchor)

General Objects:

This section implements other general changes.

![A screenshot of a computer

Description automatically generated](media://df257c0c-d351-42bb-98d2-52217a4dadb1)

### > Macro (anchor)

Post Validation Checks:

This section implements any required post validation checks and update the schema dictionaries.


Please read carefully the output in this section. It may contain recommendations for actions required to modify custom objects or other manual actions that can’t be performed by the Upgrader.


![A screenshot of a computer

Description automatically generated](media://422c3bf5-33d4-49a4-85b6-5354c5c3da9e)

### > Macro (anchor)

Hot Fixes:

This section implements any available hot fixes. It requires an Internet connection to download any available hot fix scripts from Maxwell GeoServices Download site. If Internet connection is not available at run time, no hot fix will be checked or implemented.

![A screenshot of a computer

Description automatically generated](media://229ffb99-c57a-4bf0-bc0a-1a7b014498d2)




When there more than one version upgrade required, the Upgrader will go back to start the next version upgrade. When no more version upgrade required, it will move on to Final DB Checks step.

![image](media://7c060143-869b-4322-b70f-f8e74aa33e94)


### > Macro (anchor)

Final DB Checks:

This section validates the current schema structure and reports back any schema structure issue it found comparing with the MDS base model schema dictionary. There are two type of issues might be reported here.

Type 1: Reserved base objects have been modified/deleted. Reserved objects are columns, constraints etc. that’s mandatory required in the schema as other Maxwell products might depends on them to work properly. For any issues reported under this category, it’s strongly advised to rectify them as suggested by the report to be aligned with the base model.

Type 2: None-Reserved base objects have been modified/deleted. None-Reserved base objects, often are views, are objects that allow to be modified. For any of these objects reported, please compare the base object definition as reported against current definition in you schema and manually apply any enhancements done, if any, on the base model onto your schema as appropriate.

![A screenshot of a computer

Description automatically generated](media://f5dea97d-d635-447f-93f5-e402f0b20a93)

  


# > Macro (anchor)

Run Upgrader Type – DataShed Admin

By selecting the DataShed Admin option the Maxwell DataShed Admin Database Schema can be upgraded.

![A screenshot of a computer

Description automatically generated](media://a5d4d009-dd6a-43b9-9aa5-2c8324eb70de)

  


### > Macro (anchor)

User/Login:

Create users, login, roles if not already exists and grant required permissions

![image](media://3b79bc0f-e44b-425e-aae0-09b93ea8271d)


  


### > Macro (anchor)

Tables:

This section implements all user table changes.

![A screenshot of a computer

Description automatically generated](media://add6dea4-c40f-418c-bd5d-a56db0e6ba54)


  


### > Macro (anchor)

Stored Procedures:

This section implements Stored Procedure and Function changes.

![A screenshot of a computer

Description automatically generated](media://e36d9830-b4f6-4b00-96f9-fd6bfe902d23)

### > Macro (anchor)

Permissions:

![A screenshot of a computer

Description automatically generated](media://a7124214-039c-4239-9c49-592c07563c4c)

### > Macro (anchor)

Data:

![A screenshot of a computer

Description automatically generated](media://5805a421-a5fe-400d-a471-e822edd4e2e4)


### > Macro (anchor)

Others:

![A screenshot of a computer

Description automatically generated](media://70c967ef-5e69-4580-a11a-d208c3651206)

  


### > Macro (anchor)

Final DB Checks:

Update DataShed Admin database version

![A screenshot of a computer

Description automatically generated](media://36d9c2be-eac6-4f87-8014-9f2dd2c84881)



# > Macro (anchor)

Run Upgrader Type - Grid Transformation

By selecting the Grid Transformation option, the required components for grid transformation in MDS 5.0.0 and above will be installed.

Please refer to the “MDS5 Upgrader Grid Transformations Installation Guide” document for details.

  


# > Macro (anchor)

Upgrader Type - MDS - Troubleshooting

<span style="color: #1f497d">Following are some of the common errors you might experience during the upgrade process.</span>

1. <span style="color: #1f497d">**Data issue might prevent new constraint to be created. For example, if existing data violate the new foreign key constraint, the new FK will not be able to be created. Please fix the data involved in the FK first and then continue with the upgrade.**</span>

<span style="color: #1f497d">Example error message:</span>

- <span style="color: #1f497d">Alter table tblSYSAssLabMethod</span>

<span style="color: #1f497d">ERROR: The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_tblAssay_tblSYSAssLabMethod_OrigMethod_LabCode_GenericMethod". The conflict occurred in database "Test_Database_v4.6.1", table "dbo.tblSYSAssLabMethod". </span>


<span style="color: #1f497d">Example solution:</span>

<span style="color: #1f497d">In tblAssay, some of the combo of OrigMethod/LabCode/GenericMethod data does not exist in tblSYSAssLabMethod (LabMethod/LabCode/GenericMethod). This is often duo to the GenericMethod in tblSYSAssLabMethod is incorrectly recorded. Depends on your data, It might be the GenericMethod data in tblAssay is not correct or both. Fix the incorrect data you find.</span>



1. <span style="color: #1f497d">**When receive error about can’t modify a column because certain FK(s) are referencing it, those FKs will be custom FKs and need to be dropped first and recreate them back after upgrade complete. (Note, additional column change to the custom columns might be required to reflect changes to the base column, such as column length change.)**</span>

<span style="color: #1f497d">Example error message:</span>

- <span style="color: #1f497d">Alter table tblDHColl</span>

<span style="color: #1f497d">ERROR: The object 'FK_tblDHColl_tblDHColl1' is dependent on column 'Hole_ID'.</span>

<span style="color: #1f497d">ERROR: The object 'FK_tblDHColl_tblDHColl' is dependent on column 'Hole_ID'.</span>

<span style="color: #1f497d">ERROR: The object 'FK_tblDHColl_tblDHColl1' is dependent on column 'Hole_ID'.</span>

<span style="color: #1f497d">ERROR: The object 'FK_tblDHColl_tblDHColl' is dependent on column 'Hole_ID'.</span>

<span style="color: #1f497d">ERROR: ALTER TABLE ALTER COLUMN Hole_ID failed because one or more objects access this column.</span>


<span style="color: #1f497d">Example solution:</span>

<span style="color: #1f497d">Drop the FKs mentioned in the error message above and then continue with the upgrade. Recreate these FKs (if still needed) after the upgrade completed.</span>



1. <span style="color: #1f497d">**When receive error about enable update cascade will cause cycles or multiple cascade paths, there will be a custom FK on the target table that already has cascade on. Try to remove cascade on any custom FKs on the target table so the upgrade can continue. Once upgrade completed, may try to put cascade on back on those custom FKs (note, if cascade cannot be set on custom FK, just leave it)**</span>

<span style="color: #1f497d">Example error message:</span>

- <span style="color: #1f497d">Replace tblLIBStructPlaneIntensity with tblLIBIntensity</span>

<span style="color: #1f497d">ERROR: Introducing FOREIGN KEY constraint 'FK_tblDHStructure_tblLIBIntensity_Plane_Intensity' on table 'tblDHStructure' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.</span>

<span style="color: #1f497d">ERROR: Could not create constraint. See previous errors.</span>


<span style="color: #1f497d">Example solution:</span>

<span style="color: #1f497d">Remove cascade setting on all custom FKs on table tblDHStructure and then continue upgrade. Try to reinstate cascade setting on these custom FKS where can once upgrade complete.</span>



# > Macro (anchor)

> Macro (anchor)

> Macro (anchor)

> Macro (anchor)

Licence Agreement

The use of MDS Upgrader is subject to a licence agreement with Maxwell GeoServices.  The software may only be used or copied in accordance with the terms and conditions of that agreement.


# > Macro (anchor)

> Macro (anchor)

> Macro (anchor)

> Macro (anchor)

Disclaimer

Maxwell GeoServices will not accept any liability arising from the use of MDS Upgrader software or any other software product mentioned in this manual, nor for any technical or editorial errors or omissions in this manual.


# > Macro (anchor)

> Macro (anchor)

> Macro (anchor)

> Macro (anchor)

Copyright

Maxwell GeoServices is the owner of the MDS Upgrader software, and all icons within the software, together with all soft and hardcopy documentation.  This manual contains information protected by copyright.  No part of this manual may be photocopied or reproduced in any form without the prior written consent of Maxwell GeoServices.


© Copyright 2002-2024 by Maxwell GeoServices.



# > Macro (anchor)

Support

For MDS Upgrader Support, please refer to the Maxwell GeoServices website:

[http://www.maxwellgeoservices.com/maxwellsupport.html](http://www.maxwellgeoservices.com/maxwellsupport.html)

Please find attached pdf here: