Solved

MS SQL Server 2012 - How to reduce MSDBData.mdf file

Posted on 2014-01-22
4
4,895 Views
Last Modified: 2014-01-23
Hello from Italy,
we're running MS SQL Server 2012 under 2008 R2
(under VMware ESXi 5.1)

The unique database is the ERP database
(the size of ERP database is 28 GB)

We make the database backup two times at day
(The VM is fully backed-up every night)

We found MSDBData.mdf file is 32 GB !!!

Two questions:
1) MSDBData.mdf size may be correct?
2) How can we limit the MSDBData.mdf size?
(Can we modify some standard settings?)

Thank you very much for your worldwide help!

Mauro
0
Comment
Question by:MauroMan
4 Comments
 
LVL 16

Expert Comment

by:Surendra Nath
ID: 39800082
MDF stands for Master Data File.

The reason why your MDF file is so large, can be one of the below

The data of your database is so huge, that the MDF has grown to 32GB
The initial size of the database may be set to 32GB

From the given information, I think the case is the first one, your data itself is so huge so you have a huge MDF file.
0
 
LVL 18

Accepted Solution

by:
x-men earned 500 total points
ID: 39800120
MSDBData.mdf is the data file for the msdb system database.

msdb is responsable for the SQL Agent.

To free space, you can delete job history, and (if enabled) SQL Mail logs, and then, shrink it.

check: http://technet.microsoft.com/en-us/library/ms187112.aspx for mor info.
0
 
LVL 69

Expert Comment

by:Scott Pletcher
ID: 39800330
Typically what "bloats" msdb is SSIS packages.  If you store packages in SQL Server, they are saved in msdb.

Look at the sysssis* tables, specifically sysssispackages, to determine if this is the case in your SQL instance.
0
 

Author Closing Comment

by:MauroMan
ID: 39802417
To free space is important to create a SQL Server Maintenance Plan with Shrink Database and Clean Up History tasks!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server query - can a #temp table be improved with indexing? 6 47
Download ms sql express. 2 29
sql, case when & top 1 14 30
How can I use this function? 3 14
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

821 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