---
title: "sys.endpoints (Transact-SQL) | Microsoft Docs"
ms.custom: ""
ms.date: "06/10/2016"
ms.prod: sql
ms.prod_service: "database-engine"
ms.reviewer: ""
ms.technology: system-objects
ms.topic: "language-reference"
f1_keywords:
- "endpoints"
- "sys.endpoints"
- "endpoints_TSQL"
- "sys.endpoints_TSQL"
dev_langs:
- "TSQL"
helpviewer_keywords:
- "sys.endpoints catalog view"
ms.assetid: e6dafa4e-e47e-43ec-acfc-88c0af53c1a1
author: stevestein
ms.author: sstein
manager: craigg
---
# sys.endpoints (Transact-SQL)
[!INCLUDE[tsql-appliesto-ss2008-xxxx-xxxx-xxx-md](../../includes/tsql-appliesto-ss2008-xxxx-xxxx-xxx-md.md)]
Contains one row per endpoint that is created in the system. There is always exactly one SYSTEM endpoint.
|Column Name|Data Type|Description|
|-----------------|---------------|-----------------|
|**name**|**sysname**|Name of the endpoint. Is unique within the server. Is not nullable.|
|**endpoint_id**|**int**|ID of the endpoint. Is unique within the server. An endpoint with an ID less then 65536 is a system endpoint. Is not nullable.|
|**principal_id**|**int**|ID of the server principal that created and owns this endpoint. Is nullable.|
|**protocol**|**tinyint**|Endpoint protocol.
1 = HTTP
2 = TCP
3 = Name pipes
4 = Shared memory
5 = Virtual Interface Adapter (VIA)
Is not nullable.|
|**protocol_desc**|**nvarchar(60)**|Description of the endpoint protocol. NULLABLE. One of the following values:
**HTTP**
**TCP**
**NAMED_PIPES**
**SHARED_MEMORY**
**VIA** Note: The VIA protocol is deprecated. [!INCLUDE[ssNoteDepFutureAvoid](../../includes/ssnotedepfutureavoid-md.md)]|
|**type**|**tinyint**|Endpoint payload type.
1 = SOAP
2 = TSQL
3 = SERVICE_BROKER
4 = DATABASE_MIRRORING
Is not nullable.|
|**type_desc**|**nvarchar(60)**|Description of the endpoint payload type. Is nullable. One of the following values:
**SOAP**
**TSQL**
**SERVICE_BROKER**
**DATABASE_MIRRORING**|
|**state**|**tinyint**|The endpoint state.
0 = STARTED, listening and processing requests.
1 = STOPPED, listening, but not processing requests.
2 = DISABLED, not listening.
The default state is 1. Is nullable.|
|**state_desc**|**nvarchar(60)**|Description of the endpoint state.
STARTED = Listening and processing requests.
STOPPED = Listening, but not processing requests.
DISABLED = Not listening.
The default state is STOPPED.
Is nullable.|
|**is_admin_endpoint**|**bit**|Indicates whether the endpoint is for administrative use.
0 = Nonadministrative endpoint.
1 = Endpoint is an administrative endpoint.
Is not nullable.|
## Permissions
[!INCLUDE[ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata Visibility Configuration](../../relational-databases/security/metadata-visibility-configuration.md).
## See Also
[Endpoints Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/endpoints-catalog-views-transact-sql.md)
[Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/catalog-views-transact-sql.md)