sp_add_log_shipping_primary_secondary (Transact-SQL)
SQL Server 2012
This stored procedure adds an entry for a secondary database on the primary server.
This example illustrates using sp_add_log_shipping_primary_secondary to add an entry for the secondary database LogShipAdventureWorks to the secondary server FLATIRON.
EXEC master.dbo.sp_add_log_shipping_primary_secondary @primary_database = N'AdventureWorks' , @secondary_server = N'flatiron' , @secondary_database = N'LogShipAdventureWorks' GO
