FIX: Restore or RESTORE VERIFYONLY of a TDE-compressed backup fails in SQL Server 2016 and 2017

Se aplică la: SQL Server 2016 DeveloperSQL Server 2016 EnterpriseSQL Server 2016 Enterprise Core

Symptoms


Assume that you use Cumulative Update 5 (CU5) for Microsoft SQL Server 2016 Service Pack 2 (SP2) or later versions, and you create a database that has Transparent Data Encryption (TDE) enabled. When you use Virtual Backup Device Interface (VDI) to create a compressed backup of the database (by setting MAXTRANSFERSIZE > 64K), and try to restore from the compressed backup or run RESTORE VERIFYONLY against the compressed backup, you receive the following error message:
Error 3241, Severity 16, State 0
The media family on device '<VDI Device Name>' is incorrectly formed. SQL Server cannot process this media family.

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. 

Resolution


This issue is fixed in the following cumulative updates for SQL Server:
About cumulative updates for SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

Workaround


To work around the issue, you can use one of the following methods:
  • You can use a lower version than SQL Server 2016 SP2 CU5.
  • You can use the native SQL backups instead of VDI based backups.

References


Learn about the terminology that Microsoft uses to describe software updates.