Solved

sql server express database size

Posted on 2014-12-04
5
239 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 25

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 46

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 46

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

911 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

20 Experts available now in Live!

Get 1:1 Help Now