简体   繁体   中英

SQL Server Replications - Objects to include

Are there any SQL Server Replication Best Practices? Are there any links I can read up on?
I'm using 2012 and 2014. I want to know, in general, what type of database objects typically people replicate from the source instance (publication) to the target instance (subscription)? Table is definitely one of them. If there are a lot of views associated with the source database and probably not being used in the replicated database (target/subscription), should I include them in the replication process? What about stored procedures? In both cases, would it be better just to replicate the data and manually deploy the views and stored procedures? I'd like to get some ideas/suggestions? Thanks

Here are some resources that cover replication best practices and improving performance:

Best Practices for Replication Administration

Enhance General Replication Performance

You can find a list of database objects that can be published using Replication here:

Publish Data and Database Objects

If the objects are being used at the replicated database (subscriber) then yes, you should replicate the objects. If not, feel free to exclude them from the publication.

The benefit of including them in the publication, rather than manually deploying them, is that replication supports schema changes to published objects and when you make schema changes on appropriate published objects at the Publisher, those changes are propagated by default to all Subscribers. This is covered in Make Schema Changes on Publication Databases .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM