Created a function to build the Update TSQL for the update replication