Replicate to objects with different schemas

Find out how to use a custom sync object to replicate to objects that have different schemas in this tip, one of 15 tips in 15 minutes.

The following is one of 15 replication tips in 15 minutes. Click here to return to the full list of tips.


12 of 15 replication tips: Replicate to objects with different schemas

For a more scalable repliction solution, use a custom sync object to replicate to objects that have different schemas on the publisher than on the subscriber. A custom sync object is a view that the replication subsystem uses to generate the .bcp and schema files needed to create the table's schema and data on the subscriber. You can accomplish this only by using the replication stored procedures, which are built based on this custom sync object as well.

If this does not work for you, try to create an indexed view on the publisher that looks like the schema of the object on the subscriber, and replicate the indexed view as a table.


Click here to return to 15 replication tips in 15 minutes.

About the author: Hilary Cotter has been involved in IT for more than 20 years as a Web and database consultant. Microsoft first awarded Cotter the Microsoft SQL Server MVP award in 2001. Cotter received his bachelor of applied science degree in mechanical engineering from the University of Toronto and subsequently studied both economics at the University of Calgary and computer science at UC Berkeley. He is the author of a book on SQL Server transactional replication and is currently working on books on merge replication and Microsoft search technologies.

This was first published in July 2005

Dig deeper on SQL Server Replication

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close