Solved

what can cause file growth in data file (other than autogrow % formula)  when there is less/no data activity?

Posted on 2016-08-29
5
44 Views
Last Modified: 2016-09-16
the data growth setting on the data file is 10%
looking at sysfiles system view, there is plenty of unused space yet in the data file.
current data file size 460 GB, used space 370GB, free 90GB.

we wanted to keep the data file size to 410GB since data growth is relatively slow on this database.

so i shrunk the file to 410GB which worked fine.
but today, i see that the file has grown back to 460 GB.

so obviously it has grown more than 10%, and data usage is still @ 370 GB.

what could cause more than 10% growth?
0
Comment
Question by:25112
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 40

Expert Comment

by:lcohan
ID: 41774797
Do you have any scheduled jobs/tasks against that DB that are using maybe some staging tables to "load" data then delete it?

Or do you have some maintenance plan to Rebuild Indexes? as this is also growing MDF file(s).
0
 
LVL 5

Author Comment

by:25112
ID: 41774967
there are 4 jobs.. will check in them how they handle..

only inserts are a concern in this context, right? not deletes?
0
 
LVL 40

Expert Comment

by:lcohan
ID: 41774976
INSERTs primarily indeed however a UPDATE in sql is done as an implicit INSERT/DELETE so I'm not sure yet whats happening on on large batch updates so I need to test it.
Also rebuild indexes will definitely grow it.
0
 
LVL 5

Author Comment

by:25112
ID: 41776590
>>Also rebuild indexes will definitely grow it.
yes, one job is rebuilding.

so It makes the data file to bloat and then brings it back to normal range, right?
0
 
LVL 40

Accepted Solution

by:
lcohan earned 500 total points
ID: 41798452
"so It makes the data file to bloat and then brings it back to normal range, right?"

A SQL datbase file will not "shrink" on is own unless the "Autoshrink" database option is enabled which is totally not recommend.
The T-log file will grow during the index rebuild to a specific size and my advice is to leave it like that because if you shrink it is will just grow again next time your rebuild index will run but make sure you have regular backup T-log jobs so the space inside the T-log is constantly reclaimed for use.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

632 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