SQL Server Express 10GB Limit - Total DB size or Used DB size?

Bart G 41 Reputation points
2021-03-12T10:14:44.307+00:00

SQL Server Express 10GB Limit - Total DB size or Used DB size?

Couldn't find a straight answer anywhere and it it quite important for my monitoring purposes.

How does the 10GB limit apply with SQL Express?

I.E. as soon as the DB grows to 10GB does it stop taking transactions?

OR

DB can grow to 10GB+ but as soon as used space hits 10GB it stops?

OR

DB is 10GB max but only stops when used space also hits 10GB?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,311 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shashank Singh 6,251 Reputation points
    2021-03-12T11:48:52.167+00:00

    The total space used by that data file should be 10GB no matter free or used. If suppose you have a data file with 5 GB data and 5 GB free space and you run alter database command to increase size it will flash error as size is going more than 10

    I.E. as soon as the DB grows to 10GB does it stop taking transactions?

    Yes it will if transaction is adding data, not if transaction is reading. Log file has no restriction of 10 GB

    DB can grow to 10GB+ but as soon as used space hits 10GB it stops?

    No, the total size will be considered. Your transaction will continue to insert data till data file is reached 10 GB. The error will be flashed if you try to run alter database command to increase file size more than 10 GB.

    DB is 10GB max but only stops when used space also hits 10GB?

    You need to understand that DB will grow till 10GB limit is used post that it will stop.


1 additional answer

Sort by: Most helpful
  1. AmeliaGu-MSFT 13,971 Reputation points Microsoft Vendor
    2021-03-15T07:13:44.203+00:00

    Hi @BartoszGrabczak-9572,

    Did the answer help you?
    Shashank's reply has answered your question clearly and concisely.
    In addition, if the database consists of multiple data files, the limit is across all data files in the single database.
    Please feel free to let us know if you have any other question.
    If you find any post in the thread is helpful, you could kindly accept it as answer.

    Best Regards,
    Amelia