This topic introduces the Transact-SQL statements that support deploying Always On availability groups and creating and managing an given availability group, availability replica and availability database. CREATE ENDPOINT