Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Replication SQL

Replication SQL

Scheduled Pinned Locked Moved Database
databasehelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Elizma
    wrote on last edited by
    #1

    Hi Guys I am sitting with a problem where we have a table in a database that must be replicated. This is the easy part. The problem is they only want inserts and updates to replicate and not deletes. Can anyone tell me if this is possible please? Kind Regards, Elizma

    I 1 Reply Last reply
    0
    • E Elizma

      Hi Guys I am sitting with a problem where we have a table in a database that must be replicated. This is the easy part. The problem is they only want inserts and updates to replicate and not deletes. Can anyone tell me if this is possible please? Kind Regards, Elizma

      I Offline
      I Offline
      imsathy
      wrote on last edited by
      #2

      How about creating an application to replicate excluding the deleted condition alone :)

      Sathy

      E 1 Reply Last reply
      0
      • I imsathy

        How about creating an application to replicate excluding the deleted condition alone :)

        Sathy

        E Offline
        E Offline
        Elizma
        wrote on last edited by
        #3

        Would have love to, but that is not the requirement. They want a database with that table on the server. They want to make use of SQL replication (mirroring), but only replicate the Inserts and Updates. The problem with normal Mirroring is that the table will look identical. We dont want to make it look identical.

        T 1 Reply Last reply
        0
        • E Elizma

          Would have love to, but that is not the requirement. They want a database with that table on the server. They want to make use of SQL replication (mirroring), but only replicate the Inserts and Updates. The problem with normal Mirroring is that the table will look identical. We dont want to make it look identical.

          T Offline
          T Offline
          Tim Carmichael
          wrote on last edited by
          #4

          Well, as I understand replication; that isn't going to happen. However, you COULD create triggers on the source tables for insert and update to move the data to a table that IS replicated. For example, we have a table that is replicated; on inserts and updates, a trigger fires writing data to another table in another database. This process would work in reverse. Not exactly pretty, but it might work... Tim

          E 1 Reply Last reply
          0
          • T Tim Carmichael

            Well, as I understand replication; that isn't going to happen. However, you COULD create triggers on the source tables for insert and update to move the data to a table that IS replicated. For example, we have a table that is replicated; on inserts and updates, a trigger fires writing data to another table in another database. This process would work in reverse. Not exactly pretty, but it might work... Tim

            E Offline
            E Offline
            Elizma
            wrote on last edited by
            #5

            Hi There. Thank you so much for your reply. This was eventually the solution that I also came up with. What I've been told is that in SQL 2000 replication of Iserts and Updates alone cant be done, but it can be done in SQL 2005 by editing the Replication Log file and deleting the delete section. (Well, so I've been told). Unfortunately we user SQL 2000. Triggers will have to do. Thanx again for your reply. Kind Regards, Elizma

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups