{if(publicationDb.EnabledMergePublishing) { publicationDb.EnabledMergePublishing =false; }elseif(publicationDb.EnabledTransPublishing) { publicationDb.EnabledTransPublishing =false; } }else{thrownewApplicationException( String.Format("The {0} database does not exist.", publicationDbName)); }// We ca...
create the schema owner at the Subscriber.article.SchemaOption |= CreationScriptOptions.Schema;if(!article.IsExistingObject) {// Create the article.article.Create(); }else{thrownewApplicationException(String.Format("The article {0} already exists in publication {1}.", articleName, publicationName...
)) else: if (schema_type == "DBO_SCHEMA"): print("\nWarning: %s %s, %s\n" % ("Only SDE schema is supported on", database_type, "switching to SDE schema..." )) if( gdb_admin.lower() == ""): print("\n%s: error: %s\n" % (sys.argv[0], "Geodatabase admi...
subscriptions to transactional publications are synchronized// continuously, but in this case we only want to synchronize on demand.subscription.AgentSchedule.FrequencyType = ScheduleFrequencyType.OnDemand;// Create the push subscription.subscription.Create(); }else{// Do something here if the publicatio...
AllowPullEndIfIf(publication.AttributesAndPublicationAttributes.AllowPush) =0Thenpublication.Attributes = publication.Attributes _OrPublicationAttributes.AllowPushEndIf' Send changes to the server.publication.CommitPropertyChanges()ElseThrowNewApplicationException(String.Format( _"Settings could not be retrieved ...
subscription.Create(); } else { // Do something here if the publication does not exist. throw new ApplicationException(String.Format( "The publication '{0}' does not exist on {1}.", publicationName, publisherName)); } } catch (Exception ex) { // Implement the appropriate error handling...
(Executable eachExecinpgkExecs) { TaskHost th = execasTaskHost; Console.WriteLine("Executable creation name is: {0}", th.CreationName); }// Show that at least one executable exists.if(pgkExecs.Contains(0)) { Console.WriteLine("Contains returned true"); }else{ Console.WriteLine("Contains...
create the schema owner at the Subscriber.article.SchemaOption |= CreationScriptOptions.Schema;if(!article.IsExistingObject) {// Create the article.article.Create(); }else{thrownewApplicationException(String.Format("The article {0} already exists in publication {1}.", articleName, publicationName...
create the schema owner at the Subscriber.article.SchemaOption |= CreationScriptOptions.Schema;if(!article.IsExistingObject) {// Create the article.article.Create(); }else{thrownewApplicationException(String.Format("The article {0} already exists in publication {1}.", articleName, publicationName...
create the schema owner at the Subscriber.article.SchemaOption |= CreationScriptOptions.Schema;if(!article.IsExistingObject) {// Create the article.article.Create(); }else{thrownewApplicationException(String.Format("The article {0} already exists in publication {1}.", articleName, publicationName...