[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Database size

Posted on 2007-11-20
6
Medium Priority
?
204 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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part II
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

656 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