Creating the Endpoints
Each server instance in the database mirroring configuration must have an endpoint defined so that the other servers can communicate with it. This is sort of like a private phone line to your friends. Let’s use the scripts provided as opposed to using the Configure Security Wizard. The first endpoint script is in the file 2008 Create EndPoint Partner1.SQL
.
From SSMS, you need to open a new query connection to your principal database by selecting File, New and in the New Query dialog, selecting Query with Current Connection. Open the SQL file for the first endpoint.
The following CREATE ENDPOINT
T-SQL creates the endpoint named EndPoint4DBMirroring1430
, with the listener_port
value of 1430
, and the database mirroring role ...
Get Microsoft® SQL Server 2008 R2 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.