?
Solved

Database size

Posted on 2007-11-20
6
Medium Priority
?
205 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
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 

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 2000 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part III
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

864 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