Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA NET Gatekeeper and AVEVA Change Manager

Upgrade the Database Structure

  • Last UpdatedApr 29, 2026
  • 13 minute read

There are several methods for upgrading your database depending on your existing installation. You must verify your existing database version and follow the appropriate method.

To verify your database version:

  1. Open SQL Server Management Studio.

  2. Connect to the AVEVA NET Gatekeeper or AVEVA Change Manager database.

  3. Locate the table named dbo.TIM_VERSION. The database version is in the first row of the TIM_VERSION_NO column.

Follow the appropriate method:

For this Version

Use this Method:

3.4.3

Contact your AVEVA representative.

3.4.5

See Upgrading Database Version 3.4.4.

3.5.0

See Upgrading Database Version 3.4.5.

3.5.1

See Upgrading Database Version 3.5.0.

3.5.2

See Upgrading Database Version 3.5.1.

3.5.3

See Upgrading Database Version 3.5.2.

3.5.4

See Upgrading Database Version 3.5.3.

3.5.5

See Upgrading Database Version 3.5.4.

See Upgrading Database Version 3.5.5 for Application Version 5.0.8.

3.5.6

See Upgrading Database Version 3.5.5.

3.5.7

See Upgrading Database Version 3.5.6.

3.5.8

See Upgrading Database Version 3.5.7.

3.5.9

See Upgrading Database Version 3.5.8.

Upgrading Database Version 3.4.4

When upgrading from TIM to AVEVA NET Gatekeeper or AVEVA Change Manager, you must first upgrade the database from version to 3.4.4.

Note: Before upgrading, make a backup of the existing database.

To upgrade the database:

  1. Navigate to the sub-directory Database\ApplicationDB\Update\From 4.9 to 5.0.1.

    Note: The sub-directory mentioned above should be available in the timInstallPath directory , typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager Common files by means of the installer.

  2. In each of the following files, replace any instances of the username tim_user with a valid username for the existing database. Alternatively, if the database owner is used to connect to the database from the application, remove the lines that have a format similar to "GRANT EXECUTE… TO tim_user…":

    • bug_2669.sql

    • bug_2775.sql

    • bug_3609.sql

    • bug_3877.sql

    • sp_TIM_CreateClassLibraryTableBackups.sql

    • sp_TIM_RemoveClassLibraryTableBackups.sql

    • task_2277.sql

  3. Navigate to the Database\ApplicationDB\Update\From 4.9 to 5.0.1 sub-directory, and open the sub-directory Running Scripts.

  4. Open AVEVAScripts.cmd in Notepad, and update the following values:

    • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

    • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

      For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 4.9 to 5.0.1"

    • @SET "AREA_ATTRIBUTE_GEICL_ID=enter_area_attribute_GEICL_id"

      For example, @SET "AREA_ATTRIBUTE_GEICL_ID=3125"

    Note: If you are updating from TIM 4.9 or older version to Technical Information Manager (TIM) 5.0 or newer version, enter the Generic Engineering Information Class Library (GEICL) ID of the AREA attribute specified in the Class Library used by the old version of the application. It is needed for correct migration of the data related to AREA codes into the newer version. If you are updating from the TIM 5.0 or above, leave this parameter as it is ("enter_area_attribute_GEICL_id") to avoid running the redundant migration operation.

  5. Save the updates, and exit from the script.

  6. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 4.9 to 5.0.1\Results.

  7. To run the upgrade script, double-click the AVEVAScripts.cmd file.

  8. Verify the Results folder for any errors.

    Upgrading Database Version 3.4.5

    Before upgrading AVEVA NET Gatekeeper or AVEVA Change Manager, you must first upgrade the structure of the existing database version to 3.4.5.

    Note: Before upgrading, make a backup of the existing database.

    To upgrade database structure:

    1. Navigate to the sub-directory Database\ApplicationDB\Update\From 5.0.1 to 5.0.2.

      Note: The sub-directory mentioned above should be available in the directory timInstallPath, typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager Common files by means of the installer.

    2. In each of the following files, replace any instances of the username tim_user with a valid username for the existing database. Alternatively, if the database owner is used to connect to the database from the application, remove the lines that have a format similar to "GRANT EXECUTE… TO tim_user":

      1. task_4498.sql

      2. bug_4567.sql

      3. bug_4982_5050.sql

      4. Feature_3455.sql

      5. Feature_4272.sql

      6. Feature_4349.sql

    3. Navigate to the Database\ApplicationDB\Update\From 5.0.1 to 5.0.2 sub-directory, and open the sub-directory Running Scripts.

    4. Open AVEVAScripts.cmd in Notepad, and update the following values:

      • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

      • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

      For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.1 to 5.0.2"

    5. Save the updates, and exit from the script.

    6. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.1 to 5.0.2\Results.

    7. To run the upgrade script, double-click the AVEVAScripts.cmd file.

    8. Verify the Results folder for any errors.

      Upgrading Database Version 3.5.0

      Before upgrading AVEVA NET Gatekeeper or AVEVA Change Manager, you must first upgrade the structure of the existing database version to 3.5.0.

      Notes:

      1. Before upgrading, make a backup of the existing database.

      2. If Naming-and-Numbering (N&N) tables are used as either a part of the AVEVA Change Manager database or as a separate N&N database, apply the Database\NandN\004-Alter-v1.0.1-to-v.1.0.2.sql script.

        To upgrade database structure:

        1. Navigate to the sub-directory Database\ApplicationDB\Update\From 5.0.2 to 5.0.3.

          Note: The sub-directory mentioned above should be available in the directory timInstallPath, typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager Common files by means of the installer.

        2. In each of the following files, replace any instances of the username tim_user with a valid username for the existing database. Alternatively, if the database owner is used to connect to the database from the application, remove the lines that have a format similar to "GRANT EXECUTE… TO tim_user":

          1. bug-4098.sql

          2. bug-4963.sql

          3. bug-5261.sql

          4. Feature-4474.sql

          5. improvement-4986.sql

        3. Navigate to the Database\ApplicationDB\Update\From 5.0.2 to 5.0.3 sub-directory, and open the sub-directory Running Scripts.

        4. Open AVEVAScripts.cmd in Notepad, and update the following values:

          • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

          • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

          For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.2 to 5.0.3"

        5. Save the updates, and exit from the script.

        6. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.2 to 5.0.3\Results.

        7. To run the upgrade script, double-click the AVEVAScripts.cmd file.

        8. Verify the Results folder for any errors.

          Upgrading Database Version 3.5.1

          Before upgrading AVEVA NET Gatekeeper or AVEVA Change Manager, you must first upgrade the structure of the existing database version to 3.5.1.

          Note: Before upgrading, make a backup of the existing database.

          To upgrade database structure:

          1. Navigate to the sub-directory Database\ApplicationDB\Update\From 5.0.3 to 5.0.4.

            Note: The sub-directory mentioned above should be available in the directory timInstallPath, typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager Common files by means of the installer.

          2. In each of the following files, replace any instances of the username tim_user with a valid username for the existing database. Alternatively, if the database owner is used to connect to the database from the application, remove the lines that have a format similar to "GRANT EXECUTE… TO tim_user":

            1. bug-841.sql

            2. bug-2620.sql

            3. bug-5606.sql

            4. bug-5688.sql

            5. bug-5719.sql

            6. Improvement-2929.sql

            7. Improvement-5727.sql

            8. Improvement-4800.sql

            9. Improvement-5795.sql

          3. Navigate to the Database\ApplicationDB\Update\From 5.0.3 to 5.0.4 sub-directory, and open the sub-directory Running Scripts.

          4. Open AVEVAScripts.cmd in Notepad, and update the following values:

            • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

            • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

            For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.3 to 5.0.4"

          5. Save the updates, and exit from the script.

          6. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.3 to 5.0.4\Results.

          7. To run the upgrade script, double-click the AVEVAScripts.cmd file.

          8. Verify the Results folder for any errors.

            Upgrading Database Version 3.5.2

            Before upgrading AVEVA NET Gatekeeper or AVEVA Change Manager, you must first upgrade the structure of the existing database version 3.5.2.

            Note: Before upgrading, make a backup of the existing database.

            To upgrade database structure:

            1. Navigate to the sub-directory Database\ApplicationDB\Update\From 5.0.4 to 5.0.5.

              Note: The sub-directory mentioned above should be available in the directory timInstallPath, typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager by means of the installer.

            2. In each of the following files, replace any instances of the username tim_user with a valid username for the existing database. Alternatively, if the database owner is used to connect to the database from the application, remove the lines that have a format similar to "GRANT EXECUTE… TO tim_user":

              1. bug-6427.sql

              2. feature-6199.sql

              3. feature-6277.sql

              4. feature-6278.sql

              5. feature-6322sql

              6. feature-6323.sql

            3. Navigate to the Database\ApplicationDB\Update\From 5.0.4 to 5.0.5 sub-directory, and open the sub-directory Running Scripts.

            4. Open AVEVAScripts.cmd in Notepad, and update the following values:

              • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

              • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

              For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.4 to 5.0.5"

            5. Save the updates, and exit from the script.

            6. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.4 to 5.0.5\Results.

            7. To run the upgrade script, double-click the AVEVAScripts.cmd file.

            8. Verify the Results folder for any errors.

              Upgrading Database Version 3.5.3

              Before upgrading AVEVA NET Gatekeeper or AVEVA Change Manager, you must first upgrade the structure of the existing database version 3.5.3.

              Note: Before upgrading, make a backup of the existing database.

              To upgrade database structure:

              1. Navigate to the sub-directory Database\ApplicationDB\Update\From 5.0.5 to 5.0.6.

                Note: The sub-directory mentioned above should be available in the directory timInstallPath, typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager by means of the installer.

              2. In each of the following files, replace any instances of the username tim_user with a valid username for the existing database. Alternatively, if the database owner is used to connect to the database from the application, remove the lines that have a format similar to "GRANT EXECUTE… TO tim_user":

                1. bug-6498.sql

                2. feature-6439.sql

                3. feature-6443.sql

                4. feature-6447.sql

                5. feature-6448.sql

                6. feature-6460sql

              3. Navigate to the Database\ApplicationDB\Update\From 5.0.5 to 5.0.6 sub-directory, and open the sub-directory Running Scripts.

              4. Open AVEVAScripts.cmd in Notepad, and update the following values:

                • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

                • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

                For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.5 to 5.0.6"

              5. Save the updates, and exit from the script.

              6. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.5 to 5.0.6\Results.

              7. To run the upgrade script, double-click the AVEVAScripts.cmd file.

              8. Verify the Results folder for any errors.

                Upgrading Database Version 3.5.4

                Before upgrading AVEVA NET Gatekeeper or AVEVA Change Manager, you must first upgrade the structure of the existing database version 3.5.4.

                Note: Before upgrading, make a backup of the existing database.

                To upgrade database structure:

                1. Navigate to the sub-directory Database\ApplicationDB\Update\From 5.0.6 to 5.0.7.

                  Note: The sub-directory mentioned above should be available in the directory timInstallPath, typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager Common files by means of the installer.

                2. In each of the following files, replace any instances of the username tim_user with a valid username for the existing database. Alternatively, if the database owner is used to connect to the database from the application, remove the lines that have a format similar to "GRANT EXECUTE… TO tim_user":

                  1. feature-6594.sql

                  2. feature-6563.sql

                  3. feature-6562.sql

                  4. feature-6351.sql

                  5. bug-6540.sql

                  6. bug-6497.sql

                3. Navigate to the Database\ApplicationDB\Update\From 5.0.6 to 5.0.7 sub-directory, and open the sub-directory Running Scripts.

                4. Open AVEVAScripts.cmd in Notepad, and update the following values:

                  • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

                  • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

                  For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.6 to 5.0.7"

                5. Save the updates, and exit from the script.

                6. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.6 to 5.0.7\Results.

                7. To run the upgrade script, double-click the AVEVAScripts.cmd file.

                8. Verify the Results folder for any errors.

                  Upgrading Database Version 3.5.5 for Application Version 5.0.8

                  Before upgrading AVEVA NET Gatekeeper or AVEVA Change Manager from 5.0.7 to 5.0.8, you must first upgrade the structure of the existing database version 3.5.5.

                  Note: Before upgrading, make a backup of the existing database.

                  To upgrade database structure:

                  1. Navigate to the sub-directory Database\ApplicationDB\Update\From 5.0.7 to 5.0.8.

                    Note: The sub-directory mentioned above should be available in the directory timInstallPath, typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager Common files by means of the installer.

                  2. Navigate to the Database\ApplicationDB\Update\From 5.0.7 to 5.0.8 sub-directory, and open the sub-directory Running Scripts.

                  3. Open AVEVAScripts.cmd in Notepad, and update the following values:

                    • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

                    • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

                    For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.7 to 5.0.8"

                  4. Save the updates, and exit from the script.

                  5. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.7 to 5.0.8\Results.

                  6. To run the upgrade script, double-click the AVEVAScripts.cmd file.

                  7. Verify the Results folder for any errors.

                    Upgrading Database Version 3.5.5

                    Before upgrading AVEVA NET Gatekeeper or AVEVA Change Manager from 5.0.8 to 5.0.9, you must first upgrade the structure of the existing database version 3.5.5.

                    Note: Before upgrading, make a backup of the existing database.

                    To upgrade database structure:

                    1. Navigate to the sub-directory Database\ApplicationDB\Update\From 5.0.8 to 5.0.9.

                      Note: The sub-directory mentioned above should be available in the directory timInstallPath, typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager Common files by means of the installer.

                    2. In each of the following files, replace any instances of the username tim_user with a valid username for the existing database. Alternatively, if the database owner is used to connect to the database from the application, remove the lines that have a format similar to "GRANT EXECUTE… TO tim_user":

                      1. feature-6674.sql

                      2. feature-6703.sql

                      3. feature-6704.sql

                    3. Navigate to the Database\ApplicationDB\Update\From 5.0.8 to 5.0.9 sub-directory, and open the sub-directory Running Scripts.

                    4. Open AVEVAScripts.cmd in Notepad, and update the following values:

                      • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

                      • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

                      For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.8 to 5.0.9"

                    5. Save the updates, and exit from the script.

                    6. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.8 to 5.0.9\Results.

                    7. To run the upgrade script, double-click the AVEVAScripts.cmd file.

                    8. Verify the Results folder for any errors.

                      Upgrading Database Version 3.5.6

                      Before upgrading AVEVA NET Gatekeeper or AVEVA Change Manager from 5.0.9 to 5.0.10, you must first upgrade the structure of the existing database version 3.5.6.

                      Note: Before upgrading, make a backup of the existing database.

                      To upgrade database structure:

                      1. Navigate to the sub-directory Database\ApplicationDB\Update\From 5.0.9 to 5.0.10.

                        Note: The sub-directory mentioned above should be available in the directory timInstallPath, typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager Common files by means of the installer.

                      2. In each of the following files, replace any instances of the username tim_user with a valid username for the existing database. Alternatively, if the database owner is used to connect to the database from the application, remove the lines that have a format similar to "GRANT EXECUTE… TO tim_user":

                        1. feature-5797.sql

                        2. feature-6321.sql

                        3. feature-6884.sql

                        4. feature-6956.sql

                        5. feature-7004.sql

                        6. feature-7025.sql

                      3. Navigate to the Database\ApplicationDB\Update\From 5.0.9 to 5.0.10 sub-directory, and open the sub-directory Running Scripts.

                      4. Open AVEVAScripts.cmd in Notepad, and update the following values:

                        • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

                        • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

                        For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.9 to 5.0.10"

                      5. Save the updates, and exit from the script.

                      6. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.9 to 5.0.10\Results.

                      7. To run the upgrade script, double-click the AVEVAScripts.cmd file.

                      8. Verify the Results folder for any errors.

                        Note: To start supporting the user role Allocator in AVEVA NET Gatekeeper, update the respective database using the following SQL script:

                        IF NOT EXISTS(SELECT * FROM [dbo].[GEN_ROLE] WHERE [dbo].[GEN_ROLE].[GEN_ROLE_NAME] = 'TIMALLOCATORS')
                        BEGIN
                        SET IDENTITY_INSERT [dbo].[GEN_ROLE] ON
                        INSERT [dbo].[GEN_ROLE] ([GEN_ROLE_ID], [GEN_ROLE_GUID], [GEN_ROLE_NAME], [GEN_ROLE_DESC], [GEN_ROLE_ACTIVE], [GEN_ROLE_CREATEDBYID], [GEN_ROLE_CREATEDDATE], [GEN_ROLE_UPDATEDBYID], [GEN_ROLE_UPDATEDDATE], [GEN_ROLE_CODE])
                        VALUES (5, N'024e8e9e-cb49-4677-8a95-058edecbe2b8', N'TIMALLOCATORS', N'Members of this Role are the only users that are allowed to allocate and check in Tag or Document Numbers in AVEVA NET Gatekeeper', 1, 1, GETDATE(), 1, GETDATE(), N'Allocator')
                        SET IDENTITY_INSERT [dbo].[GEN_ROLE] OFF
                        END
                        GO

                        Upgrading Database Version 3.5.7

                        Before upgrading AVEVA NET Gatekeeper or AVEVA Change Manager from 5.0.10 to 5.0.11, you must first upgrade the structure of the existing database version 3.5.7.

                        Note: Before upgrading, make a backup of the existing database.

                        To upgrade database structure:

                        1. Navigate to the sub-directory Database\ApplicationDB\Update\From 5.0.10 to 5.0.11.

                          Note: The sub-directory mentioned above should be available in the directory timInstallPath, typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager Common files by means of the installer.

                        2. In each of the following files, replace any instances of the username tim_user with a valid username for the existing database. Alternatively, if the database owner is used to connect to the database from the application, remove the lines that have a format similar to "GRANT EXECUTE… TO tim_user":

                          1. feature-6922.sql

                          2. bug-7180.sql

                        3. Navigate to the Database\ApplicationDB\Update\From 5.0.10 to 5.0.11 sub-directory, and open the sub-directory Running Scripts.

                        4. Open AVEVAScripts.cmd in Notepad, and update the following values:

                          • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

                          • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

                          For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.10 to 5.0.11"

                        5. Save the updates, and exit from the script.

                        6. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.10 to 5.0.11\Results.

                        7. To run the upgrade script, double-click the AVEVAScripts.cmd file.

                        8. Verify the Results folder for any errors.

                          Upgrading Database Version 3.5.8

                          Before upgrading AVEVA NET Gatekeeper or AVEVA Change Manager from 5.0.11 to 5.0.12, you must first upgrade the structure of the existing database version 3.5.8.

                          Note: Before upgrading, make a backup of the existing database.

                          To upgrade database structure:

                          1. Navigate to the sub-directory Database\ApplicationDB\Update\From 5.0.11 to 5.0.12.

                            Note: The sub-directory mentioned above should be available in the directory timInstallPath, typically C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application, as it is installed along with AVEVA NET Gatekeeper and AVEVA Change Manager Common files by means of the installer.

                          2. In each of the following files, replace any instances of the username tim_user with a valid username for the existing database. Alternatively, if the database owner is used to connect to the database from the application, remove the lines that have a format similar to "GRANT EXECUTE… TO tim_user":

                            1. bug-7247.sql

                            2. bug-7326.sql

                            3. archiving-old-data.sql

                            4. validation-status-implementation.sql

                          3. Navigate to the Database\ApplicationDB\Update\From 5.0.11 to 5.0.12 sub-directory, and open the sub-directory Running Scripts.

                          4. Open AVEVAScripts.cmd in Notepad, and update the following values:

                            • @SET "SQLCMD_ARGS=-U DB_OWNER_NAME -P DB_OWNER_PASSWORD -S DB_SERVER_NAME -d DB_NAME"

                            • @SET "SQL_SCRIPT_ROOT=enter_base_path_where_SQL_scripts_listed_below_are_located"

                            For example, @SET "SQL_SCRIPT_ROOT= C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.11 to 5.0.12"

                          5. Save the updates, and exit from the script.

                          6. Create a Results folder in the folder where the upgrade scripts are located. For example, C:\Program Files\AVEVA\WDA.Applications\TechInfo Manager\Application\Database\ApplicationDB\Update\From 5.0.11 to 5.0.12\Results.

                          7. To run the upgrade script, double-click the AVEVAScripts.cmd file.

                          8. Verify the Results folder for any errors.

                            Important Notes:

                            1. The SQL script archiving-old-data.sql contains two parts: database structure upgrade and data migration. The SQL script is to create new tables in the AVEVA NET Gatekeeper or AVEVA Change Manager database to store historical data of the completed Working Sets and move the data from the actively used tables such as TIM_TAG, TIM_DOC, TIM_DATASET_ATTRIBUTES, etc., to the similar tables with the names starting with the prefix "TIM_HISTORICAL_" specially designed for keeping historical data. So execution of the script may take more time than usual depending on how many Tags\Documents have been already processed by AVEVA NET Gatekeeper or AVEVA Change Manager, e.g. 40 minutes or more.

                            2. When the AVEVA NET Gatekeeper or AVEVA Change Manager database has been successfully upgraded, the empty table TIM_PROJECTOWNED_TAG should be available. The table is intended to store data of the Tags that have ever been processed by AVEVA NET Gatekeeper to use these data further for Parent Tag or Tar Reference validation in order to improve performance of AVEVA NET Gatekeeper (for AVEVA Change Manager, the table is always empty and not used). So, please, run the SQL script parent-tag-validation-data-update.sql against the AVEVA NET Gatekeeper database if you want to populate the table based on the data that already persists in other database tables.

                            3. Please, run all the database update scripts in the same order as mentioned in the file AVEVAScripts.cmd. Ensure that the SQL script validation-status-implementation.sql is running after the SQL script archiving-old-data.sql has successfully completed. Be aware that the SQL script validation-status-implementation.sql sets the validation status property of each Tag or Document existing in the database of AVEVA NET Gatekeeper or AVEVA Change Manager so, based on amount of data persisting in the database, this process may take several hours.

                            In This Topic
                            TitleResults for “How to create a CRG?”Also Available in