

Restoring SSAS Cubes to a SQL 2022 Server with CU5 – Data Savvy
source link: https://datasavvy.me/2023/08/18/restoring-ssas-cubes-to-a-sql-2022-server-with-cu5/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Microsoft Technologies, SQL Server, SSAS
Restoring SSAS Cubes to a SQL 2022 Server with CU5
I have a client who was upgrading some servers from pre-2022 versions of SQL Server to SQL Server 2022 CU7. They had some multidimensional SSAS cubes that were to go on the new server. But they ran into an issue after the upgrade. After restoring a backup of an SSAS database to the new server they found that they could no longer modify the data source using SSMS.
The error SSMS produced was: “Errors in the metadata manager. Multidimensional database ‘DBName’ is not using latest encryption schema. Please create a backup file and restore DB from backup file with the optioin EnsureProperEncryption to upgrade to the latest encryption.
SQL 2022 CU1 and later includes enhanced encryption for “certain write operations to the model database schema”. SQL 2022 CU5 includes a bug fix with the description “Adds additional enforcement of write operations to the encryption algorithm that’s used to encrypt data sources and connection strings in SQL Server Analysis Services (SSAS) models”.
The solution required two steps, as stated in the error message:
- Back up the SSAS database.
- Restore with the EnsureProperEncryption option enabled.
While you could do the backup using the SSMS GUI, the option to ensure proper encryption was not available there. Microsoft Support gave us the XML to perform the backup and restore, so I’m sharing it here in case someone else runs into this issue.
Backup
<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" Transaction="false"> <Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <Object> <DatabaseID>your_databse_id</DatabaseID> </Object> <File>your_backup_file_pathname</File> <AllowOverwrite>true</AllowOverwrite> <ApplyCompression>false</ApplyCompression> </Backup> </Batch> |
Restore
<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" Transaction="false" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl100="http://schemas.microsoft.com/analysisservices/2008/engine/100"> <Restore xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" xmlns:ddl922="http://schemas.microsoft.com/analysisservices/2022/engine/922"> <File>your_backup_file_pathname</File> <AllowOverwrite>true</AllowOverwrite> <ddl922:EnsureProperEncryption>true</ddl922:EnsureProperEncryption> </Restore> </Batch> |
Remember that the backup file should have a .ABF extension and the file path should be a UNC path.
Up and Running
After the backup and restore using the code above, the SSAS database was back in action and the client was able to modify the data source settings again.
Recommend
-
22
Announcements will.schroeder ...
-
8
Antimagic and Force CubesA lesson from weakly typed magic items Posted on October 4, 2020 | cluxIn 2018, we introduced the explosive
-
8
Why ice cubes rock 2005-02-26 by qntm Here's a list of reasons why ice cubes are the be...
-
10
Released: SSRS and SSAS Management Packs (7.0.29.0)%3CLINGO-SUB%20id%3D%22lingo-sub-2028921%22%20slang%3D%22en-US%22%3EReleased%3A%20SSRS%20and%20SSAS%20Management%20Packs%20(7.0.29.0)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2028921%...
-
16
...
-
12
Cubix Cubes: Hyper-Realistic Three-Dimensional Abstract Cubes From RuleByArt February 2, 2021 Established by Robert Marks in 2013, RuleByArt is aptly named for t...
-
15
Average only for NonEmpty - SSAS MDX advertisements For one day (several datetime records possible) I want to create a 2nd measure computing a...
-
7
Fortnite season 8 is all about the cubesThe alien invasion is over, and now Fortnite’s island is... full of cubes. Season 8 of the battle royale’s second chapter just launched and it’s called, simply, “
-
7
SSAS cube with date records advertisements I have to build a cube based on date range records, and not sure about the best way to proceed....
-
6
Accessing SSAS via HTTP ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK