我是SQL Server的新手,所以我读过MS SQL Server 2008 Express Edition的数据库大小限制为10 GB。现在我的问题是我可以拥有多个数据库,例如数据库A(8 GB)和数据库B(规模10 GB)。我的意思是单个数据数据库或整个SQL Server数据库大小的大小限制。
提前谢谢
答案 0 :(得分:12)
答案 1 :(得分:10)
在SQL服务器上检查此脚本 -
SELECT
d.server_name
, d.sversion_name
, d.edition
, max_db_size_in_gb =
CASE WHEN engine_edition = 4 -- Express version
THEN
CASE
WHEN d.sversion_name LIKE '%2016%' THEN 10
WHEN d.sversion_name LIKE '%2014%' THEN 10
WHEN d.sversion_name LIKE '%2012%' THEN 10
WHEN d.sversion_name LIKE '%2008 R2%' THEN 10
WHEN d.sversion_name LIKE '%2008%' THEN 4
WHEN d.sversion_name LIKE '%2005%' THEN 4
END
ELSE -1
END
FROM (
SELECT
sversion_name = SUBSTRING(v.ver, 0, CHARINDEX('-', v.ver) - 1)
, engine_edition = SERVERPROPERTY('EngineEdition')
, edition = SERVERPROPERTY('Edition')
, server_name = SERVERPROPERTY('ServerName')
FROM (SELECT ver = @@VERSION) v
) d
SQL Server 2005 Express的输出 -
server_name sversion_name edition max_db_size_in_gb
---------------- --------------------------- ----------------- -----------------
SERV1\SQL2005 Microsoft SQL Server 2005 Express Edition 4
SQL Server 2012 Express的输出 -
server_name sversion_name edition max_db_size_in_gb
---------------- --------------------------- ----------------- -----------------
SERV1\SQL2012 Microsoft SQL Server 2012 Express Edition 10
答案 2 :(得分:3)
这取决于有多少db,all db size can not exceed 10GB