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:
- Have made a backup of the i-refactory metadata repository tables.
- No data loads are running. Nor batch loads nor crud transactions.
- All i-refactory engines are stopped and have no connections to the database.
- Connections to the i-refactory metadata database are restricted.
Upgrade the i-refactory repository¶
- Start SSMS or any compliant tool which is capable of running sqlcmd scripts.
- Connect to your SQLServer instance.
- Open the file:
\i-refactory-sqlserver\update.sql - Make sure your session is connected to the i-refactory metadata database.
- If your client is SSMS set values for the parameters: Menu => Query => Specify Values For Template Parameters. Enter the appropriate values.
- Change the modus of the query to SQLCMD: Menu => Query => SQLCMD.
- 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.