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
40 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
  • 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

     When we have to pass multiple rows of data to SQL Server, the developers either have to send one row at a time or come up with other workarounds to meet requirements like using XML to pass data, which is complex and tedious to use. There is a …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

820 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