Sync Develepment and Production Databases

  • Hi,

    How can I sync the development and production databases. i.e how to keep the contents same other than backup and restore.

    Thanks

  • Novicejatt (9/15/2010)


    Hi,

    How can I sync the development and production databases. i.e how to keep the contents same other than backup and restore.

    Thanks

    Which env you want to sync from? If it is Prod to DEV then you can schedule a job to restore the Prod backup on the dev, but in this scenario it will overwrite what ever changes done in DEV.

    Use SSIS to move only the incremental data from Prod to DEV.

    "More Green More Oxygen !! Plant a tree today"

  • you could also use data compare from red-gate

  • Hi,

    I want to sync the Dev to Prod.

    Thanks

  • Novicejatt (9/16/2010)


    I want to sync the Dev to Prod.

    If you really want to overwrite production with the whole content of development the easy way is backup/restore.

    Having said that, it is really unusual to move the whole content of Development on top of Production. Usually specific DDL or Code changes are applied/promoted from Dev to Prod; I'll suggest to rely in a source control plus change control combo.

    _____________________________________
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at Amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
  • Hi,

    I have to add new data to database every day .... so was thinking not to add the data directly to production coz I might messup the prod database .... instead add the data to devlopment database and then sync it with the production...

    Thanks

  • IMHO, adding data to development so as not to mess up production is a bad idea. You'll start to think that you don't have to be as careful because its' DEV.

    What data are you adding that is an issue? Typically if you are looking to verify or clean data, you add it to some staging tables, check it, then use established routines/SSIS/T-SQL to move this data into production tables.

  • Novicejatt (9/16/2010)


    I have to add new data to database every day .... so was thinking not to add the data directly to production coz I might messup the prod database .... instead add the data to devlopment database and then sync it with the production...

    This is a very unusual strategy indeed.

    If for any reason this has to be done please create a new database and call it "Staging" - do not use Development for Production purposes.

    _____________________________________
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at Amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
  • Hi,

    I'm just trying to be carefull ..... but thank you all.

  • As per previous post what I would suggest is that you have a staging DB on Prod and then import your data to the relevant tables on your Production DB. If you script it right then it can be put into a SSIS package or T-SQL Scripted jobs. Entirely up to you.

  • I agree with Steve Jones - Editor (Post #987787)

    Varinder Sandhu,
    http://www.varindersandhu.in/

Viewing 11 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic. Login to reply