Solved

Database size

Posted on 2007-11-20
6
196 Views
Last Modified: 2008-03-06
I have a client wich this summer upgraded from axapta 2 to dynamics 3, before the upgrade was the datasize of the database 3GB now its over 24GB is this normal?!?

0
Comment
Question by:Ethan_Oln
  • 3
  • 3
6 Comments
 
LVL 8

Expert Comment

by:digital_thoughts
ID: 20319872
Very unlikely, have you checked to see what the free space reserved in the database is? Also, what is the recovery model type for the database? (Full, Bulk-logged or Simple) -- if its Full, then change it to Simple and do a backup of the database. Having the recovery model on Full will save every transaction is the database log and will cause the database to continue to grow and grow...
0
 

Author Comment

by:Ethan_Oln
ID: 20320407
the 24GB is the data size of the datafile. The tlog is backed up every 2hours so the size of the tlog is normaly between 100MB and 2GB

Regards Ole
0
 
LVL 8

Expert Comment

by:digital_thoughts
ID: 20320715
Ok, did you verify the recovery model of the database?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:Ethan_Oln
ID: 20320746
The recovery model is set to full, do that influence the size of the data? I thought that only made the tlogs grow more (and enable point in time restore) and they are backed up and truncated every two hours so they arent an issue i guess?

Ole
0
 
LVL 8

Accepted Solution

by:
digital_thoughts earned 500 total points
ID: 20320845
I'm not sure on the full recovery model if it will only grow the logs or not, but to check you data, here's a procedure that will get all of the user tables and their sizes:

DECLARE @Name AS VARCHAR(500)

CREATE TABLE #TableSizes (name VARCHAR(500), rows INT, reserved VARCHAR(100), data VARCHAR(100), index_size VARCHAR(100), unused VARCHAR(100))

DECLARE myCursor CURSOR FOR (SELECT name FROM sysobjects WHERE xtype='U')
OPEN myCursor  
FETCH NEXT FROM myCursor INTO @Name
WHILE @@FETCH_STATUS = 0
BEGIN
      INSERT INTO #TableSizes
      EXEC sp_spaceused @Name
      FETCH NEXT FROM myCursor INTO @Name
END
CLOSE myCursor
DEALLOCATE myCursor

SELECT * FROM #TableSizes
DROP TABLE #TableSizes
0
 

Author Comment

by:Ethan_Oln
ID: 20364829
Thanks, found the culprit... The programmers had duplicated the clientdata several times for testing purposes, on the production server...

Mvh

Ole
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now