Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

sql server express database size

Posted on 2014-12-04
5
Medium Priority
?
269 Views
Last Modified: 2014-12-05
Hi

I have seen that the maximum database size of SQL Server express is 10 GB. If I execute
EXEC sp_helpdb @dbname= 'MSDB'

Open in new window

it shows me db_size = 16175 MB. Why is this possible (16 GB)?
0
Comment
Question by:formi
5 Comments
 
LVL 15

Accepted Solution

by:
Haris Djulic earned 1000 total points
ID: 40482372
Hi,

the limitation is on the size od DB file but there are log files which are not counted in the limit value...

You can use reports on the DIsk Usage and it will show you the size od DB and size of logs...
0
 
LVL 25

Assisted Solution

by:Mohammed Khawaja
Mohammed Khawaja earned 1000 total points
ID: 40482385
Haris is correct.  You could have a 100 MB database file with a log file of 11 GB (I have actually seen it).  If you really want to know how large the database is, right click on the database, click on tools, shrink, select file and then you could select either data or log and for each one, you can see what the size is set to (this is the file size in OS) as well as the whitespace (empty space inside the file).  You could create a database for 10 GB where actual data might be only 1 MB.
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40482389
The second part of the results from sp_helpdb returns the size of each data file and log file. You can check there.
0
 

Author Comment

by:formi
ID: 40482675
@Vitor: I can not see a second part in that sp...
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40482679
Then use the following command:
use msdb
GO
sp_helpfile 

Open in new window

It's strange that your MSDB is that large because in SQL Express the SQL Agent is disabled.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question