Problem upgrading encryption for multidimensional analysis services database in SQL 2022

Jim Dale 15 Reputation points
2023-08-09T11:11:35.6666667+00:00

I am migrating 2 analysis services databases that are in multidimensional mode from a 2017 instance to a 2022 instance that has had the CU1 update applied.

I need to upgrade the encryption on these DBs so i can amend the connection string.

This article tells me how i should do it but i see no option anywhere to enable EnsureProperEncryption when restoring the database.

https://learn.microsoft.com/en-us/analysis-services/instances/encryption-upgrade?view=sql-analysis-services-2022&preserve-view=true

This is relevant section:

Multidimensional mode

For multidimensional model databases at all compatibility levels, the following error can be returned during certain schema write operations:

"Multi-dimensional database '%{DatabaseName/}' is not using latest encryption schema. Please create a backup file and restore DB from backup file with the option EnsureProperEncryption to upgrade to the latest encryption."

To upgrade encryption, backup the database and then restore with the EnsureProperEncryption option enabled.

Hoping someone can offer some advice on how to achieve this.

Thanks

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,494 questions
SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,339 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 31,406 Reputation points
    2023-08-10T10:55:06.2266667+00:00

    It appears that you're facing an issue while upgrading the encryption for multidimensional analysis services databases in SQL Server 2022. Based on the information you provided I am assuming the following :

    First, ensure that you have a proper backup of the database in question. Since the GUI might not be showing the EnsureProperEncryption option, consider using T-SQL or PowerShell to perform the restore with the required options.

    Using SQL Server Management Studio (SSMS), you might write a T-SQL script like this to restore the database with the EnsureProperEncryption option:

       RESTORE DATABASE YourDatabaseName
    
       FROM DISK = 'path_to_your_backup.bak'
    
       WITH EnsureProperEncryption;
    

    Make sure that you have the required permissions to perform the restore operation with the EnsureProperEncryption option. You might need to be a system admin or have a special role to enable this option.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.