If you ever need to move your MEMCM data warehouse, it’s actually fairly easy. This blog post will walk you through the general process, and provide a method for making sure your new data warehouse point is syncing all your tables.
I completed this post using MEMCM 2002 and migrated SQL Server from 2016 to 2019.
Moving the Database
If you’re going to upgrade SQL versions, I would do it on the old server. That way your new installation is clean. Don’t forget to upgrade the database version, not just SQL Server.
Moving the database is fairly straightforward. Make sure that the SQL Server version matches on the old and new server.
- Remove the data warehouse service point from the old server using the MEMCM console.
- Launch SQL Server Management Studio (SSMS) on the old server, or connect to the old server using SSMS from another member server.
- Backup the data warehouse database.
- Right-click on the data warehouse database.
- Select Tasks, then Back Up….
- Specify Full for Backup type, and Disk for Back up to.
- Provide a backup location by clicking Add.
- Click OK to start the backup.
- Launch SSMS on the new server, or connect to the new server using SSMS from another member server.
- On the new server, restore the data warehouse database.
- Right-click on Databases and select Restore Database….
- Change the Source to Device and click the … button.
- Click Add, and browse to the backup location.
- Select the backup file and click OK.
- Click OK to restore the database.
- Install the data warehouse role on the new server from the MEMCM console.
Identify Extra Tables
MEMCM doesn’t save tables that were manually specified for syncing, so if you didn’t document the extra tables you selected, this is a way to go back and do those now.
First, we need to figure out which tables weren’t default. To do that, kick off a manual sync from the MEMCM console. This can be done by viewing the role on the site server where it’s installed. Wait for the sync to complete. You can follow along in the Microsoft.ConfigMgrDataWarehouse.log file. This file is in the SMS folder on the server running the data warehouse service point. Once the sync is complete, run this SQL query from SSMS, replacing the timestamp in the WHERE statement with a timestamp after your manual sync.
WHERE LastSyncTime < '2020-07-26 07:04:000.000'
Any tables returned need to be selected on the database warehouse service point role MEMCM console, under the Synchronization Settings tab. Once you think you have them all, you can rerun the query (with a new timestamp) until it produces no results.
All content provided on this blog is for information purposes only. Windows Management Experts, Inc makes no representation as to accuracy or completeness of any information on this site. Windows Management Experts, Inc will not be liable for any errors or omission in this information nor for the availability of this information. It is highly recommended that you consult one of our technical consultants, should you need any further assistance.