Server and Database Migration
Server and database migrations typically take place because more capacity is needed or the hardware can no longer meet the requirements and an update is not possible. If after initial installation the DEACOM databases need to be moved, there are several key steps to take to ensure all data is protected and the transition goes smoothly. Refer to the section below based on the migration being considered. Any technical support assistance needed to migrate is a billable project.
Moving DEACOM databases to a new location on the same server
- Backup all databases.
- Detach the databases.
- Move the databases to the new drive or folder on the server.
- Reattach the databases.
- Change the database default locations under Server Properties > Database Settings to point to the new location.
Moving DEACOM databases to a new server
- Install the same or a newer version of SQL Server Management Studio on the new server with mixed mode authentication and enable Filestream during installation.
- If skipped during installation, both mixed mode and Filestream can be configured afterwards.
- Confirm SQL is properly licensed or a trial version will stop working after a given number of days, preventing DEACOM from running.
- Login to the current DEACOM environment from the new SQL Server so that the server is whitelisted.
- Confirm firewall settings are configured to allow remote access to SQL Server.
- In SQL Server Management Studio:
- Expand the Security folder, then right-click on the Logins folder and select "New Login".
- Setup a login for deacom where the password matches exactly what is currently on the old server. Contact DEACOM Technical Support to setup an account if you do not know the password.
- Navigate to Server Roles and check the "public" and "sysadmin" flags. If desired, companies may use another login, with the "sysadmin" flag checked, for running installs and updates. In this case, the "sysadmin" flag does not have to be checked for the "deacom" login. If the "deacom" user in not set as "sysadmin," users will be required to enter the appropriate SQL credentials when running DEACOM updates.
- Click "OK" to create the login.
- Confirm protocols are enabled in SQL Server Configuration Manager.
- Click "Start" on the computer, and open the Control Panel.
- Select Administrative Tools, then Computer Management.
- Expand "Services and Applications".
- Expand "SQL Server Configuration Manager".
- Expand “SQL Server Network Configuration”.
- Click “Protocols for MSSQLSERVER”.
- Right-click on “TCP/IP” and select “Enable”.
- A warning will appear indicating that the service will have to be restarted. Click "OK".
- Copy the DEACOM folders to the new server.
- Modify the DEACOM ini file to point to the new SQL Server or server\instance per SQL installation.
- Backup existing databases.
- Restore existing databases.
- Set the owner of the database.
- Right-click each database and select Properties.
- Under Files, click "…" and make SQL deacom security login the owner of the database.
- If updating SQL, compatibility level may also be checked under Options.
- Run the current DEACOM update against the new environment. Important: Ensure the Automation and Web Services are stopped if they have been previously installed.
- Install or start the Automation Service.
- Install or start the Web Services.
- Confirm or modify the existing Trigger and EDI setup to reflect the new server.
- Re-save all Triggers to update them with the new server information.
- Test all functionality, including EDI, before final cut-over.
- Repeat steps 6-15 for final cut-over to capture any changes since initial testing.
- Detach databases from the old server so they are no longer accessible.