I am trying to create an endpoint in SQL Server 2019 using T-SQL:
CREATE ENDPOINT endpoint_mirroring
STATE = STARTED AS TCP ( LISTENER_PORT = 5022 )
FOR DATABASE_MIRRORING
( AUTHENTICATION = WINDOWS NEGOTIATE,
ENCRYPTION = SUPPORTED,
ROLE=ALL);
GO
I want to use SQL Server authentication for creation of mirroring endpoints. I can use SQL Server Management Studio to do that, but could not find any examples on SQL Server authentication method for T-SQL.
Thanks