How To Move Your Database To Another SQL Server

Version 5

    Purpose

     

    This article provides steps to migrate an existing database for Shavlik Protect another SQL server.

     

    Note: Before migration, ensure that Microsoft SQL Management Studio is installed on both the current database server and the destination database server. Also, ensure that no user is currently logged in to the Protect console. If you do not yet have SQL Server Management Studio, you can obtain the express editions with the links in this document: http://community.shavlik.com/docs/DOC-23132.

     

    To migrate the database to another SQL server:

     

    1. Open SQL Management Studio on the current database server.
    2. Expand the Databases folder and locate your Protect database.

             Note: To find the file path, in SQL Management Studio, right-click the database and click Properties. Then click on Files and scroll to the right.

    DbProperties.png

       3.  Right-click the Protect database and click Detach, then choose drop then click ok.

    DetactchDB.PNG

       4.  Browse to the directory where the database files are stored on the server, databasename.mdf and databasename.ldf and then copy them.

    MDF_LDF.PNG

     

       5.  Place the files on the new server in the location of your choice.

       6.  Open SQL Management Studio on the destination machine and log in to the database engine.

       7.  Right-click the Databases folder and click Attach

    Attaching.PNG

     

       8.  In the Databases to attach window, click Add and point it to the databasename.mdf file you copied to the server.

            You should now be able to see the MDF and LDF files in the bottom pane.

     

    AttachDB.PNG

     

       9.  Link the database to the Protect installation.

     

         To link the database to the Protect installation:

    1. Log in to your Protect console machine.
    2. Click Start > All Programs > Shavlik Protect.
    3. Select Database setup tool.  
    4. Select the Use an existing database option and click Next.  
    5. Select the server name of the new database server.  
    6. In the Database Name dropdown, select your Protect database.  
    7. Choose the credentials that the Protect console should use to connect to the database.
    8. Click Test database connection.  
    9. If the test is successful, click Next.
    10. The console should now be attached to this database and Protect is ready for use.

     

    Affected Products

     

    Shavlik Protect 9.X