--- title: "Principal Server Instance (Configure Database Mirroring Security Wizard)" description: A description of the 'Principal Server Instance' page of the 'Configure Database Mirroring Security' Wizard in SQL Server Management Studio. author: MikeRayMSFT ms.author: mikeray ms.date: "03/07/2017" ms.service: sql ms.subservice: database-mirroring ms.topic: conceptual f1_keywords: - "sql13.swb.configdbmsecurwiz.principalsrvr.f1" --- # Principal Server Instance (Configure Database Mirroring Security Wizard) [!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)] Use this page to specify information about the server instance of the principal database. The principal database is the copy of the database that begins the mirroring session. After the session has begun, the principal database is the copy of the database that accepts user changes. (When a failover occurs, the principal and mirroring roles are swapped; therefore, the initial principal database might not remain the principal database.) **To configure database mirroring by using SQL Server Management Studio** - [Establish a Database Mirroring Session Using Windows Authentication (SQL Server Management Studio)](../../database-engine/database-mirroring/establish-database-mirroring-session-windows-authentication.md) - [Start the Configuring Database Mirroring Security Wizard (SQL Server Management Studio)](../../database-engine/database-mirroring/start-the-configuring-database-mirroring-security-wizard.md) ## Options **Principal server instance** Because database mirroring in [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] is always configured from the principal server, the current server instance is always the principal server instance. **Listener Port** The behavior of this option depends on whether the mirroring endpoint exists for this server instance, as follows: - If the listener port does not exist for this server instance, port number 5022 is displayed in the **Port** text box. You can use any available port number, such as, 7022. - When the mirroring endpoint already exists, the port number from the endpoint is displayed. If you need to change the port, use an ALTER ENDPOINT command. For more information, see [ALTER ENDPOINT (Transact-SQL)](../../t-sql/statements/alter-endpoint-transact-sql.md). > [!NOTE] > A port number is required. **Endpoint name** If the mirroring endpoint exists for this server instance, the endpoint name is displayed here. If the endpoint does not exist, you can specify the name of the endpoint. **Encrypt data sent through this endpoint** By default, encryption is enabled. When enabled, encryption is required (not merely supported) and uses the default values for all of the encryption options. For more information, see [CREATE ENDPOINT (Transact-SQL)](../../t-sql/statements/create-endpoint-transact-sql.md). To disable encryption, clear the check box. To re-enable encryption, select the check box. ## See Also [The Database Mirroring Endpoint (SQL Server)](../../database-engine/database-mirroring/the-database-mirroring-endpoint-sql-server.md) [Database Properties (Mirroring Page)](../../relational-databases/databases/database-properties-mirroring-page.md) [Create a Database Mirroring Endpoint for Windows Authentication (Transact-SQL)](../../database-engine/database-mirroring/create-a-database-mirroring-endpoint-for-windows-authentication-transact-sql.md) [Start Database Mirroring Monitor (SQL Server Management Studio)](../../database-engine/database-mirroring/start-database-mirroring-monitor-sql-server-management-studio.md) [Database Mirroring (SQL Server)](../../database-engine/database-mirroring/database-mirroring-sql-server.md)