Solved

Database size

Posted on 2007-11-20
6
199 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
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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.
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 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