Microsoft® SQL Server™ provides Microsoft ActiveX® controls that allow custom applications to invoke replication agent functionality. The controls support anonymous, pull, and push subscriptions and can be monitored using SQL Server Enterprise Manager at the Distributor. Programmers can use ActiveX replication controls like any standard built-in control, such as the Microsoft Visual Basic® CheckBox control. The two controls provided are the SQL Distribution control and the SQL Merge control. These controls can be implemented in applications that manage subscriptions. In addition, these controls can be programmed to add and drop pull and anonymous subscriptions, create or attach Subscriber databases and register subscriptions to be run by Microsoft Synchronization Manager.
Using the ActiveX replication controls includes these benefits:
If you start a replication agent using SQL Server Agent, other jobs may also run. Also, if you are replicating to heterogeneous Subscribers using pull or anonymous subscriptions, SQL Server Agent is not available at the Subscriber.
For example, you can place a “Synchronize Now” command in a menu.
Controls can be programmed to add or drop subscriptions and create or attach databases at the Subscriber.
If a subscription is registered in Microsoft Synchronization Manager, there is no need to embed the controls in the application. All synchronization is then controlled by this central application.
Programming Replication ActiveX Controls