文档

RDS SQL Server数据库出现“Data compression and vardecimal storage format are only supported on SQL Server Enterprise Edition”报错

更新时间:

问题描述

RDS SQL Server数据库出现以下报错,其中[$Name]为表名称。

Recovery is writing a checkpoint in database 'xxx' (9). This is an informational message only. No user action is required. Database 'xxx' cannot be started in this edition of SQL Server because part or all of object '[$Name]' is enabled with data compression or vardecimal storage format. Data compression and vardecimal storage format are only supported on SQL Server Enterprise Edition. Database 'xxx' cannot be started because some of the database functionality is not available in the current edition of SQL Server

问题原因

版本兼容性问题,SQL Server企业版、SQL Server 2016标准版及以上才支持数据压缩功能。具体详情,请参见各版本的功能差异

解决方案

以下是两种解决方法:

相关操作

以下是查询SQL Server数据库中启用了压缩对象的SQL语句。

SELECT name,
       type_desc,
       data_compression_desc
FROM sys.partitions p
JOIN sys.objects o ON p.object_id = o.object_id
WHERE p.data_compression_desc<>'NONE'
  AND o.type='U';

相关文档

客户端如何连接RDS SQL Server实例,请参见连接SQL Server实例