--- title: "log_shipping_primary_secondaries (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "06/10/2016" ms.prod: sql ms.prod_service: "database-engine" ms.reviewer: "" ms.technology: system-objects ms.topic: "language-reference" f1_keywords: - "log_shipping_primary_secondaries_TSQL" - "log_shipping_primary_secondaries" dev_langs: - "TSQL" helpviewer_keywords: - "log_shipping_primary_secondaries system table" ms.assetid: 4b315c70-7265-4acd-b35b-a4dbb7881d98 author: "stevestein" ms.author: "sstein" --- # log_shipping_primary_secondaries (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2008-xxxx-xxxx-xxx-md](../../includes/tsql-appliesto-ss2008-xxxx-xxxx-xxx-md.md)] Maps each primary database to its secondary databases. This table is stored in the **msdb** database. |Column name|Data type|Description| |-----------------|---------------|-----------------| |**primary_id**|**uniqueidentifier**|The ID of the primary database for the log shipping configuration.| |**secondary_server**|**sysname**|The name of the secondary instance of the [!INCLUDE[msCoName](../../includes/msconame-md.md)] [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)] in the log shipping configuration.| |**secondary_database**|**sysname**|The name of the secondary database in the log shipping configuration.| ## See Also [About Log Shipping (SQL Server)](../../database-engine/log-shipping/about-log-shipping-sql-server.md) [sp_add_log_shipping_primary_secondary (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-add-log-shipping-primary-secondary-transact-sql.md) [sp_delete_log_shipping_primary_secondary (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-delete-log-shipping-primary-secondary-transact-sql.md) [sp_help_log_shipping_primary_secondary (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-help-log-shipping-primary-secondary-transact-sql.md) [System Tables (Transact-SQL)](../../relational-databases/system-tables/system-tables-transact-sql.md)