Solved

sql server express database size

Posted on 2014-12-04
5
235 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 250 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 24

Assisted Solution

by:Mohammed Khawaja
Mohammed Khawaja earned 250 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 45

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 45

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SQL Server memory Issue 7 76
Sql query to Stored Procedure 6 20
Convert SP in a format for debugging 7 13
select over clause 1 0
In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how the fundamental information of how to create a table.

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now