difference between logshipping and maintanance plans

Answered difference between logshipping and maintanance plans

  • lundi 20 août 2012 13:32
     
     

    hi sir,

         plz what  is the exact difference between log shipping and maintanance plans in sql server.

     Regrards:

    bhaskar

      

Toutes les réponses

  • lundi 20 août 2012 13:48
     
     Traitée

    Hi,

    There's not really too much in common between them.

    http://msdn.microsoft.com/en-us/library/ms187103.aspx - log shipping

    http://msdn.microsoft.com/en-us/library/ms187658.aspx - maintenance plans

    Log shipping is primarily used for disaster recovery, or providing a standby reporting database.  Maintenance plans let you create a workflow of tasks that help ensure a database is optimized, consitent and backed up.  A lot of people use alternatives to SQL Servers built in maintenance plans, like Ola Hallengren's utilities: http://ola.hallengren.com/

    What are your requirements?



    Thanks, Andrew

  • lundi 20 août 2012 13:50
     
     Traitée

    Hi Bhaskar,

    These are completely two different subjects as we should not go for difference between two. Please have a look at below description to see what is the purpose.

    Maintenance Plans are used for basic maintenance activities like backups, index fragmentation maintenance, stats update etc. You can schedule the plan to run on a specified schedule.

    While Log shipping is technology, which is mainly for DR purpose. It takes log backup from primary server and applies that log to secondary server database periodically. Secondary server database will be in restoring mode by default and if any disaster happens, you can point applications to secondary server.

    Hope this description helps. 


    - Chintak (My Blog)

  • mercredi 22 août 2012 12:03
     
     Réponse proposée

    I believe your confusion is caused by the fact that both of these things perform some sort of backup.

    However, as the other members already pointed out here, there's no real resemblance between the two.

    Specifically:

    Log Shipping performs transaction log backups on the primary server, and restores them on the secondary server(s).

    Using Maintenance Plans you can create backup plans for your databases (transaction log, full and differential), and perform other tasks such as consistency checks and index defragmentation.


    Eitan Blumin; SQL Server Consultant - Madeira SQL Server Services; http://www.madeira.co.il/author/eitan/

    • Proposé comme réponse EitanBlumin lundi 27 août 2012 06:44
    •