Security Compliance
Migrate a local or remote Patch Manager database to a remote SQL server
This article describes how to migrate a Patch Manager database from the Patch Manager server to a remote Microsoft SQL server.
First published date
Last published date
Overview
Product section
Cause
Resolution
Note: As of now PM does not support migrating the Eminentware DB to SQL HA cluster only Standalone SQL setup is supported
Requirements
- Microsoft SQL Server Management Studio
- A domain account to be assigned as the service account for the EminentWare Data Grid Server service. Initially, this account should have the SQL SysAdmin role.
- The following Microsoft components:
- Microsoft SQL Server Native Client
- Microsoft SQL Server Management Objects Collection
To verify or obtain the correct version of Microsoft SQL Management Studio:
- Locate your Microsoft SQL Server version. See How to determine the version, edition, and update level of SQL Server and its components for details.
- Download the appropriate version of SQL Server Management Studio.
If you are using SQL Server Express Edition for your Patch Manager database, download Microsoft SQL Server Management Studio from the Microsoft website.
Migrating a Patch Manager server is not supported by SolarWinds. This procedure requires you to install a new Patch Manager server on the Windows server.
As a workaround:
- Install the new Patch Manager server in Evaluation mode and configure the application (except for the third party updates catalogs).
- Deactivate the original Patch Manager server license. This procedure moves the application to Evaluation mode, allowing you 30 days to complete the migration.
- Activate the new Patch Manager server.
- Configure the third-party updates catalogs.
Steps to migrate the SQL database
SolarWinds strongly recommends backing up your registry before making any edits to your system registry. You should only edit the registry if you are experienced and confident in doing so. Using a registry editor incorrectly can cause serious issues with your operating system, which may require reinstalling your operating system to correct them. SolarWinds cannot guarantee resolutions to any damage resulting from making registry edits.
- Open SQL Management Studio.
- Back up your Patch Manager/EminentWare database.
- Close the Patch Manager Administrator Console.
- Stop the EminentWare Data Grid Server service.
- Move the saved backup to the NEW SQL server and place it where you can access in the following steps.
- Open SQL Management Studio on the NEW SQL server.
- Restore the database backup.
- Add the domain admin account to the security users profile and give it SA rights and db owner.
- Clear the
MEKeyandMPKeyregistry strings on the Patch Manager server:- Open Registry Editor.
- Expand
HKEY_LOCAL_MACHINE\SOFTWARE\EminentWare\Data Grid Service\Roles\Applicationand select Data. - Select
MEKey, and then right click > Delete. - Repeat this procedure for the
MPKeystring.
- Change the account used to start the EminentWare Data Grid Server service to the domain account identified in the Requirements section of this article.
Note: For same domain accounts on a new server, the account can be left the same for the login tab of the service.
- Navigate to the Services window and make sure the EminentWare Data Grid Server service is selected.
- Click Action, and then select Properties.
- Click the Log On tab.
- Change the account here, and then click OK (Make sure that the account is set in the form
DOMAIN\AccountName).
- Change the
ConnectionStringregistry string on the Patch Manager server:- Go back to Registry Editor.
- Select
HKEY_LOCAL_MACHINE\SOFTWARE\EminentWare\Data Grid Service. - Select
ConnectionString, and then click Edit > Modify. - Change the Value data field to address the remote SQL server.
The default value is:Data Source=<serverName>\<instance>;Initial Catalog=EminentWare;Integrated Security=True
IMPORTANT NOTE:<serverName>This is the name of the SQL server.
On the Source=<serverName>\<instance>, there may not be an instance. You can remove the instance name but DO NOT REMOVE THE BACKSLASH:
Example_1: Source=mysqlserver\
Example_2: Source=mysqlserver\mysqlinstance
- Click OK.
- Run
DBHelper.exeon the Patch Manager server to specify the new SQL server location and credentials. The default path is:C:\Program Files\SolarWinds\Patch Manager\Server.- Open a Command Prompt as an administrator.
- Change directories to
C:\ProgramFiles\SolarWinds\Patch Manager\Server. - Enter
dbhelper.exe /s newSQLServerName\instance /p createlogins /u domainName\username /o c:\output.ini
where:newSQLServerNameis the name of your new SQL server,instanceis the name of your new database instance,domainNameis the domain for the domain service account, andusernameis the username for the domain service account.
- Start the EminentWare Data Grid Server service.
- Open the Patch Manager/EminentWare console and update all of the stored credentials. See Change the account or password used for the Patch Manager service and make sure to apply all the necessary updates.