--- title: "sys.default_constraints (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "03/15/2017" ms.prod: sql ms.prod_service: "database-engine, sql-database, sql-data-warehouse, pdw" ms.component: "system-catalog-views" ms.reviewer: "" ms.suite: "sql" ms.technology: system-objects ms.tgt_pltfrm: "" ms.topic: "language-reference" f1_keywords: - "sys.default_constraints" - "sys.default_constraints_TSQL" - "default_constraints" - "default_constraints_TSQL" dev_langs: - "TSQL" helpviewer_keywords: - "sys.default_constraints catalog view" ms.assetid: 096e3659-edeb-4440-a016-f847acd6166b caps.latest.revision: 34 author: edmacauley ms.author: edmaca manager: craigg monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017" --- # sys.default_constraints (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2008-all-md](../../includes/tsql-appliesto-ss2008-all-md.md)] Contains a row for each object that is a default definition (created as part of a CREATE TABLE or ALTER TABLE statement instead of a CREATE DEFAULT statement), with **sys.objects.type** = D. |Column name|Data type|Description| |-----------------|---------------|-----------------| |**\**||For a list of columns that this view inherits, see [sys.objects (Transact-SQL)](../../relational-databases/system-catalog-views/sys-objects-transact-sql.md).| |**parent_column_id**|**int**|ID of the column in **parent_object_id** to which this default belongs.| |**definition**|**nvarchar(max)**|SQL expression that defines this default.| |**is_system_named**|**bit**|1 = Name was generated by system.

0 = Name was supplied by the user.| ## Permissions [!INCLUDE[ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata Visibility Configuration](../../relational-databases/security/metadata-visibility-configuration.md). ## Examples The following example returns the definition of the DEFAULT constraint that is applied to the `VacationHours` column of the `HumanResources.Employee` table. ``` USE AdventureWorks2012; GO SELECT d.definition FROM sys.default_constraints AS d INNER JOIN sys.columns AS c ON d.parent_column_id = c.column_id WHERE d.parent_object_id = OBJECT_ID(N'HumanResources.Employee', N'U') AND c.name = 'VacationHours'; ``` ## See Also [Object Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/object-catalog-views-transact-sql.md) [Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/catalog-views-transact-sql.md) [Querying the SQL Server System Catalog FAQ](../../relational-databases/system-catalog-views/querying-the-sql-server-system-catalog-faq.md)