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
38 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 39

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 39

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 39

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

777 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