8

我是 SQL Server 新手,所以我读到 MS SQL Server 2008 Express Edition 的数据库大小限制为 10 GB。现在我的问题是我是否可以拥有多个数据库,例如 8 GB 的数据库 A 和 10 GB 的数据库 B。我的意思是单个数据数据库或整个 SQL Server 数据库大小的大小限制。

提前谢谢

4

3 回答 3

12

Yes it been increased from 4GB to 10GB

Please refer SQL Server Express WebLog

In theory you can create multiple databases, which each should be less than 10GB

于 2013-09-25T10:31:20.767 回答
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
于 2013-09-25T10:40:57.523 回答
3

这不取决于有多少分贝,all db size can not exceed 10GB

于 2013-09-25T10:23:28.397 回答