How To: Shrink a Database

Version 6

    Purpose


    This document will outline the process of shinking the Shavlik Protect database.

     

    Note: In order to shrink Shavlik Protect or WMware vCenter Protect database, please ensure SQL Server Management Studio is installed. You may install it by selecting the link corresponding with your Microsoft SQL Server version below:

     

        •  SQL Server 2005 Express

        •  SQL Server 2008 Express

        •  SQL Server 2008 R2 Express

        •  SQL Server 2012 Express

     

    Steps

      

    1. Open Microsoft SQL Server Management Studio.
    2. Connect to the appropriate SQL Server Instance and login with the appropriate credentials. This is [hostname]\SQLEXPRESS by default and uses Windows Authentication.
    3. Expand the ‘Databases’ portion on the left hand side of the screen by clicking the '+' sign.
    4. Right click on the ‘Protect’ database. Select 'Properties'.

     

    1-properties.png

     

    1. Within the Database Properties window, select 'Options' on the left hand side of the screen.

     

    2-options.png

     

    1. Within this screen set the 'Recovery model' option to 'Simple'.

     

    3-simple.png

    1. Click 'Ok'.
    2. Right click on the ‘Protect’ database. Select 'Tasks' then 'Shrink' and select 'Database' from the submenu.

    4-shrink.png

     

    1. Within the new window, click 'OK'.
    2. The window will close when the database shrink process has been completed.