Solved

Database size

Posted on 2007-11-20
6
202 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
[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
  • 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part II
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

718 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