Author: richardvv
Subject: contig issue with sql server on VM box
Posted: 04 November 2014 at 1:08pm
I ran contig.exe 1.7 with -a on the mdf file of a 91 GB database on a sql server 2012 server running on a VM box, and it said there were 109 fragments.
Subject: contig issue with sql server on VM box
Posted: 04 November 2014 at 1:08pm
I ran contig.exe 1.7 with -a on the mdf file of a 91 GB database on a sql server 2012 server running on a VM box, and it said there were 109 fragments.
I then brought the database offline, and ran contig without the -a, and it said No files fragmented.
After I brought the database online, contig again said there were 109 fragments.
Has anyone run into similar issues?
Does anyone have any suggestions on any parameter or option I need to use to get rid of the fragmentation?
Here's the actual output, with the database name replaced by xxx, in case that helps. Thanks.
C:\downloads>contig.exe -a E:\data\xxx.mdf
Contig v1.7 - Makes files contiguous
Copyright (C) 1998-2012 Mark Russinovich
Sysinternals - www.sysinternals.com
E:\data\xxx.mdf is in 109 fragments
Summary:
Number of files processed : 1
Average fragmentation : 109 frags/file
C:\downloads>contig.exe E:\data\xxx
.mdf

Contig v1.7 - Makes files contiguous
Copyright (C) 1998-2012 Mark Russinovich
Sysinternals - www.sysinternals.com
Processing E:\data\xxx.mdf...
Scanning Disk: 0xc0000022
No files fragmented.
C:\downloads>contig.exe -a E:\data\xxx.mdf
Contig v1.7 - Makes files contiguous
Copyright (C) 1998-2012 Mark Russinovich
Sysinternals - www.sysinternals.com
E:\data\xxx.mdf is in 109 fragments
Summary:
Number of files processed : 1
Average fragmentation : 109 frags/file
C:\downloads>