This article will explain how to point the HighGear web server to a new database location. Please follow this process precisely as described in this document. There is no danger of data loss or corruption on the source server, but the destination server will not operate correctly unless the entire process is performed correctly.
Backing up the source server’s HighGear database:
- Open SQL Management Studio on the source server
- Open the HighGear database
- Back up the database
Restoring the database to the new server:
- Open SQL Management Studio on the destination server
- Open the HighGear database
- Restore the backup file into the HighGear database, with the Overwrite option checked
- On the web server, open the settings.xml file (located in the Program Files/HighGear folder) find the line that starts with <DB_Server>. Change the value to point to the new database server.
Once the database is restored, the database logins must be created/fixed before HighGear will work on the new database server. The instructions for this depend on the version of HighGear that is installed on the web server.
Fixing SQL users for HighGear 8.4 and later:
- On the web server, navigate to C:\Program Files\HighGear
- Run the FixSQLUsers.exe tool. It will prompt for the sysadmin credentials for the destination SQL Server and recreate the logins based on the credentials in Settings.xml.
Fixing SQL users for older HighGear versions:
- Open SQL Management Studio on the destination server and navigate to the restored database.
- Expand the Users folder
- Delete all of the users that are there
- Go to the server’s Security folder, and open the Logins folder
- You will see three HighGear users: HighGear, HighGear_Admin, and HighGear_Reporting
- Delete these three users.
- Create 3 SQL login with the same username as on the original database.
- The username for these will most likely be similar to HighGear, HighGear_Admin, and HighGear_Reporting
- The password for these users should be the same as development database logins. If these passwords are not available, send the HighGear settings.xml file in development and we can decrypt the password and communicate them over the phone. This file is located in the Program Files/HighGear folder
- Go to the User Mapping page
- Check the “Map” box for the HighGear database
- In the Role Membership section, check db_datareader and db_datawriter
- Click OK
- Do the same thing for HighGear_Admin, but check db_datareader, db_datawriter, and db_owner
- Do the same thing for HighGear_Reporting, but only check db_datareader
- Log into the database as the admin user and run the following query for each of the usernames
- GRANT EXECUTE ON SCHEMA ::dbo TO HighGear
- GRANT EXECUTE ON SCHEMA ::dbo TO HighGear_Admin
- GRANT EXECUTE ON SCHEMA ::dbo TO HighGear_Reporting
Fixing the BI Module Settings.lgx file:
If the BI Module is installed, you will need to update the Settings.lgx file to point to the new database server. These strings are located in ..\inetpub\wwwroot\Reporting\_Definintions\Settings.lgx. You will need to update the Data Source= value in these 4 lines
- String starting with <Connection ID=”ahMetadata”…
- String starting with <Connection ID=”1″…
- String starting with <Connection ID=”ahLog”…
- String starting with <Connection ID=”ahRepository”…