Converting Nav DB To SQLDB

hi friends

i am converting a native DB to SQL . Native DB size is 8 GB . when i am converting this to SQL the size is 48 GB . why is that. can i reduce the size. is there is any methord to reduce the size of the SQLDB . please help me guys

regards

satheesh

Is that including the transaction log or just the data files? If the transaction log files are included, then those need to be truncated. Also, just because the data file size is 48GB does not mean that it is all in use.

Large database size for NAV databases is usually because the database is massively over indexed, and there are many redundant SIFT levels. One of the ways to reduce the size is to tune the indexes and to remove those redundant SIFT levels. It’ll perform better as a result too.

Check some posts in this forum. http://dynamicsuser.net/forums/71.aspx There are a few posts about performance and reducing DB size.

hi Diniel

yes Log file has occupied the big space in my hard Disk it is 38 GB . Data file and transaction file are 10 GB . how can i compress the LOG File

regurds

satheesh

Since the log file should be on its own DEDICATED physical drive it’s size should not be a major concern. Provided it is not running out of space on the drive.

You can find out how to adjust your transaction log in SQL Books Online. Basically the steps are:

  1. Full DB backup (optional as a precaution)

  2. backup log with truncate only - where databasename is the name of your database

  3. dbcc shrinkfile() - where filename is the file name of the transaction log, you can get that from DB properties

  4. You will then want to do either:

a) Set the database recovery model to simple

b) Or set it to full and setup a database maintenance plan to backup the log at regular intervals. This combined with a regular full or differential backups provides a great backup/recovery setup.

Don’t compress Log files to minimum since it will grow. Shrink only to reasonable size. Or better don’t Shrink it.