SQL Server Tutorial SQL Server Advanced SQL Server Database SQL Server References

SQL Server - DROP DEFAULT Keyword



The SQL Server (Transact-SQL) DROP DEFAULT keyword is used to delete a DEFAULT CONSTRAINT.

DROP DEFAULT constraint

To drop DEFAULT constraint from City column of Employee table, the following statement can be used:

/* Drops a DEFAULT constraint named DV_City */
ALTER TABLE Employee
DROP CONSTRAINT DV_City;

❮ SQL Server Keywords