This project is read-only.


DatabaseDefrag: The app does not display any messages to tell the user that the index rebuild is finished.



1. Win2k3 ENT ENU
2. Yukon DEV ENU 09.06.1399.06
  1. Sample MSI 60410
    4. Whidbey 8.0.50727.42


  1. Run DatabaseDefrag.exe.
  2. The window "Connect to SQL Server..." pops up ,and then connect the SQL server instance by default.
  3. The window "Defragment Database" pops up, click Defragment button.
  4. Check the defragment results.


  1. The rebuilded indexes should be listed.
  2. The rebuilding complete messages should be displayed at the end.

Actual Results:

Only listed rebuilded indexes, but does not display the rebuilding complete messages. For more details, pls check the attached pic.


If operate on a null database, the user would think this sample does not work since there are no index to rebuild. I think it's better to add rebuild complete messages to tell the operation has been completed just like the sample RebuildAllIndexes.

file attachments

Closed Jul 28, 2009 at 8:09 AM by leilu


wrote Apr 21, 2009 at 9:14 AM

Add the "Completed" message after defragment in CS and VB solution.

wrote Apr 21, 2009 at 9:21 AM

  1. Add a new string 'Completed' in Resources.resx both in CS and VB solution
  2. Added the followed code on  Line 146 of DatabaseDefrag.cs:
     Added the followed code on  Line 123 of DatabaseDefrag.vb:

wrote Jul 28, 2009 at 8:09 AM

Verified on Sample Build 90727

wrote Feb 14, 2013 at 3:50 AM

wrote May 16, 2013 at 9:02 AM

wrote Nov 28, 2017 at 12:43 AM