Replication Stored Procedures (Transact-SQL)
Replication system stored procedures are documented and available as a method for accomplishing one-time tasks, such as implementing replication, and for using in batch files and scripts. When you want to add programmatic control of replication to an application or carry out repeated replication tasks, such as synchronizing subscriptions, you are better served by using the programming interfaces provided by Replication Management Objects (RMO).
SQL Server Books Online provides examples of how to program most of the common replication tasks using Transact-SQL stored procedures. For more information, see Programming Replication Using System Stored Procedures.
Only the replication stored procedures documented in SQL Server Books Online are supported. Undocumented stored procedures are only for the use of internal replication components and should not be used to administer replication.