| title | Delete Check Constraints | |||||
|---|---|---|---|---|---|---|
| description | Delete Check Constraints | |||||
| author | WilliamDAssafMSFT | |||||
| ms.author | wiassaf | |||||
| ms.date | 06/28/2017 | |||||
| ms.service | sql | |||||
| ms.subservice | table-view-index | |||||
| ms.topic | how-to | |||||
| ms.custom |
|
|||||
| helpviewer_keywords |
|
|||||
| monikerRange | =azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric-sqldb |
[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]
You can delete a check constraint in [!INCLUDEssnoversion] by using [!INCLUDEssManStudioFull] or [!INCLUDEtsql]. Deleting check constraints removes the limitations on data values that are accepted in the column or columns included in the constraint expression.
In This Topic
-
Before you begin:
-
To delete a check constraint, using:
Requires ALTER permission on the table.
-
In Object Explorer, expand the table with the check constraint.
-
Expand Constraints.
-
Right-click the constraint and click Delete.
-
In the Delete Object dialog box, click OK.
-
In Object Explorer, connect to an instance of [!INCLUDEssDE].
-
On the Standard bar, click New Query.
-
Copy and paste the following example into the query window and click Execute.
ALTER TABLE dbo.DocExc DROP CONSTRAINT CHK_ColumnD_DocExc; GO
For more information, see ALTER TABLE (Transact-SQL).