May 3, 2010 at 4:34 am
Hello everyone i am using transaction replication with push subscription. I am developing a UI for replication using RMO in C#.NET between different instances of the same database within same machine holding similar schema and structure. I am using Single subscriber and multiple publisher topology. During creation of publication i want to set a few article properties such as Keep the existing object unchanged and allow schema changes at subscriber to false and copy foriegn key constarint to true. How do i set the article properties using RMO in C# .NET. I am using Visual Studio 2008.I also want to know as how we can select all the objects including Tables,Views,Stored Procedures for publishing. I could do it for one table but i want to select all the tables at one stretch. This is the code snippet i used.
TransArticle ta = new TransArticle();
ta.Name = "Article_1";
ta.PublicationName = "TransReplication_DB2";
ta.DatabaseName = "DB2";
ta.SourceObjectName = "person";
ta.SourceObjectOwner = "dbo";
ta.ConnectionContext = conn;
ta.Create();
Viewing 0 posts
You must be logged in to reply to this topic. Login to reply