Wednesday, March 28, 2012

RMO ReplicationDatabase Class Can't Program Peer-to-Peer?

Just reading the documentation on RMO programming and noticed that it is silent about peer-to-peer replication. Further, the ReplicationDatabase class has neither a property indicating whether peer-to-peer is enabled, nor a method (or get/set) to enable peer-to-peer. Is peer-to-peer publication outside the scope of RMO programming?

Curious minds want to know...

Thanks.

Randy

You can specify the attributes of the transpublicaiton objec as

PublicationAttributes.AllowInitializationFromBackup | PublicationAttributes.EnabledForPeerToPeer

to create a pulbiction for P2P replication.

Similarily, you can use this attribute to check if the publciation is enalbed for P2P or not.

HTP.

thanks

Yunwen

No comments:

Post a Comment