Skip to content

Upgrade the i-refactory repository in SQLServer

In case you already have an existing i-refactory release and an upgrade of the i-refactory repository metadata is required this document contains the pre-requisites and steps that should be executed by a DBA to upgrade the i-refactory metadata repository in SQLServer.

Warning

You only need to execute the described procedure if you have an existing i-refactory environment and you want to upgrade to a new release of the i-refactory metadata repository.

Prepare for upgrade

Make sure you:

  1. Have made a backup of the i-refactory metadata repository tables.
  2. No data loads are running. Nor batch loads nor crud transactions.
  3. All i-refactory engines are stopped and have no connections to the database.
  4. Connections to the i-refactory metadata database are restricted.

Upgrade the i-refactory repository

  1. Start SSMS or any compliant tool which is capable of running sqlcmd scripts.
  2. Connect to your SQLServer instance.
  3. Open the file: \i-refactory-sqlserver\update.sql
  4. Make sure your session is connected to the i-refactory metadata database.
  5. If your client is SSMS set values for the parameters: Menu => Query => Specify Values For Template Parameters. Enter the appropriate values.
  6. Change the modus of the query to SQLCMD: Menu => Query => SQLCMD.
  7. Execute the script.

Info

The upgrade might take a while. A detailed description of the impact of the upgrade is documented in the upgrade instructions for each release.

The upgrade script runs in a single transaction. If no errors occur the transaction is committed, otherwise the transaction is aborted.

In the message tab window logging is generated regarding the steps executed.