Is any one experienced this problem
Client using Nav 4.0 SP3 & SQL Server 2005.
For every 1 to 2 months the database size increasing drastically (last month it reached to 30GB). When we do Navision restore from proprietary backup (not SQL backup), database size shrink to 3 or 4 GB and works fine. But when we do SQL restore from SQL backup, there is no change in the database size (i.e; same as previous size). Again after some days when we check the database size it shows as 6 or 7 GB. After months it reaches to 20+ GB. There is no complaint about the business process except Performance issue.
How can I trace this problem?
Thanks,
ravi
~~ravi
0
Comments
Mind it, before doing this activity you have to take up the backup then change the recovery model to Simple and then restore it, it will definitely solve your problem.
You should NEVER use Autoshrink with Navision, NEVER.
Do you have checked why the DB file increase?
Is it "only" the LOG File or realy the mdf / ndf file(s) ?
I belive you have Recovery Model Full. and this is good so for a productive database.
What for maintenance jobs do you have?
And as David said. NERVER USE AUTOSHRINK.
So find out, why the files are increase.
What are the consequences if used?
ERP Consultant (not just Navision) & Navision challenger
1) Like David and Garak said : NEVER use autoshrink
2) Like Garak asked : which file is growing : the DB or the log-file?
2.a) If it is the DB, probably it is because the fill-factor of your DB is too low. It should be 90%. To fix this, just change the fill-factor to the correct value. You can shrink your DB, so the size is double the amount your data is taking (this way your DB doesn't need to grow for some time). The autogrowth should be used ONLY in case of emergency. You should (once a week or also once a month) check if there is enough space left in your DB. If not, you should manually grow your DB a fair amount, so you are again tranquil for some time.
2.b) If it is the log-file, you should make TL-backups in the future or use another recovery model. To fix this, you should first make a full backup, then change the recovery model to simple. Shrink the logfile as much as possible (max 10KB!). Finished this, expand your logfile again to the size of your DB (this to eliminate internal fragmentation ; I hope to find some time these days to blog about this). Change recovery mode back to full and make regular TL backups (at least once an hour).
In both cases, it check your disk if it has become fragmented (especially the DB- and log-files) and if they are, defrag your disk (of course, you need to stop the SQL-server service to do this).
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
(if you search the forum for "SIFT" you'll find plenty of advices about "how to ...")
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
But as we are discussing "database growth" we should consider anything, too 8)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
You can also do an exe upgrade to 5.0 sp1 which gets rid of SIFT and replaces them with Indexed views.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
There are two important things you need to do:
1 - Hire someone who knows about SQL Server and let them show you how it works.
2 - Buy yourself a book about SQL Server as a reference
@ sacmon:
Same goes for you, get yourself a good SQL Server book and read about the things you are giving out advice for. It looks like you are misunderstanding some of the options.
RIS Plus, LLC
But now it's time for Ravi_Navision to give a statement.
@ Ravi / @ sacmon:
A SQL Server book is a good XMas present for you and you can decant it from the fiscal (here in Germany it's possible because it's a book for the work)