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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.