I was able to get this to work under these conditions:
Table1 and Table2(at the subscriber) have exactly the same column names and attributes. I used Snapshot replication. I think this would work for merge or transactional also, but have not tried to replicate to a diff table name with those repl types.
Here you go:
-under Replication--> Publications, right-click the publication name --> Properties
- click Articles
- in the pane on the right side, click the elipse ...
- in the Genral tab, change the Destination table name, insert the table owner name in owner box
- click the Snapshot tab and select 'Delete all data in the existing table'
Save the changes - OK OK OK
Right-click the Publication name (the one you just changed) and click 'Reinitialize all subscriptions' - Yes
Execute the Snapshot Agent (or the respective REPL job)
Then, if the Distribution Agent/job did not run automatically, you will have to run that to push the table to the subscriber.
All done. Check the table at the subscriber database.
(if you have done everything correctly but the destination table still is not populated, you may have to delete the publisher and rebuild everything from scratch)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.