--- title: "DROP DEFAULT (Transact-SQL) | Microsoft Docs" ms.custom: - "SQL2016_New_Updated" ms.date: "10/28/2015" ms.prod: "sql-non-specified" ms.reviewer: "" ms.suite: "" ms.technology: - "database-engine" ms.tgt_pltfrm: "" ms.topic: "language-reference" f1_keywords: - "DROP_DEFAULT_TSQL" - "DROP DEFAULT" dev_langs: - "TSQL" helpviewer_keywords: - "DROP DEFAULT statement" - "defaults [SQL Server], removing" ms.assetid: d2d3af25-8877-46ba-95d9-1844961d97ee caps.latest.revision: 43 author: "BYHAM" ms.author: "rickbyh" manager: "jhubbard" --- # DROP DEFAULT (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2008-xxxx-xxxx-xxx_md](../../includes/tsql-appliesto-ss2008-xxxx-xxxx-xxx-md.md)] Removes one or more user-defined defaults from the current database. > [!IMPORTANT] > DROP DEFAULT will be removed in the next version of [!INCLUDE[msCoName](../../includes/msconame-md.md)][!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Do not use DROP DEFAULT in new development work, and plan to modify applications that currently use them. Instead, use default definitions that you can create by using the DEFAULT keyword of [ALTER TABLE](../../t-sql/statements/alter-table-transact-sql.md) or [CREATE TABLE](../../t-sql/statements/create-table-transact-sql.md). ![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md) ## Syntax ``` DROP DEFAULT [ IF EXISTS ] { [ schema_name . ] default_name } [ ,...n ] [ ; ] ``` ## Arguments *IF EXISTS* || |-| |**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] ([!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] through [current version](http://go.microsoft.com/fwlink/p/?LinkId=299658)).| Conditionally drops the default only if it already exists. *schema_name* Is the name of the schema to which the default belongs. *default_name* Is the name of an existing default. To see a list of defaults that exist, execute **sp_help**. Defaults must comply with the rules for [identifiers](../../relational-databases/databases/database-identifiers.md). Specifying the default schema name is optional. ## Remarks Before dropping a default, unbind the default by executing **sp_unbindefault** if the default is currently bound to a column or an alias data type. After a default is dropped from a column that allows for null values, NULL is inserted in that position when rows are added and no value is explicitly supplied. After a default is dropped from a NOT NULL column, an error message is returned when rows are added and no value is explicitly supplied. These rows are added later as part of the typical INSERT statement behavior. ## Permissions To execute DROP DEFAULT, at a minimum, a user must have ALTER permission on the schema to which the default belongs. ## Examples ### A. Dropping a default If a default has not been bound to a column or to an alias data type, it can just be dropped using DROP DEFAULT. The following example removes the user-created default named `datedflt`. ``` USE AdventureWorks2012; GO IF EXISTS (SELECT name FROM sys.objects WHERE name = 'datedflt' AND type = 'D') DROP DEFAULT datedflt; GO ``` Beginning with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] you can use the following syntax. ``` DROP DEFAULT IF EXISTS datedflt; GO ``` ### B. Dropping a default that has been bound to a column The following example unbinds the default associated with the `EmergencyContactPhone` column of the `Contact` table and then drops the default named `phonedflt`. ``` USE AdventureWorks2012; GO BEGIN EXEC sp_unbindefault 'Person.Contact.Phone' DROP DEFAULT phonedflt END; GO ``` ## See Also [CREATE DEFAULT (Transact-SQL)](../../t-sql/statements/create-default-transact-sql.md) [sp_helptext (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-helptext-transact-sql.md) [sp_help (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-help-transact-sql.md) [sp_unbindefault (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-unbindefault-transact-sql.md)