在 SQL Server 2017 Express Edition 上恢复超过 3 GB 的 bak 文件出现错误

Restore a bak file which is more than 3 GB on a SQL Server 2017 Express edition getting error

我正在尝试将大小约为 3 GB 的数据库恢复到 SQL Server 2017 Express 版本,但我一直收到此错误:

Msg 1827, Level 16, State 4, Line 11
CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 10240 MB per database.

Msg 3013, Level 16, State 1, Line 11
RESTORE DATABASE is terminating abnormally.

SQL Server Express 将最大数据库大小限制为 10GB。

收缩数据库试试