Syntax to drop existing default constraint from a table
USE [DatabaseName]
GO
ALTER TABLE [Table_Name]
DROP CONSTRAINT [DefaultConstraintName]
Below is the example to drop default constrain from orderqty table
USE [MyDatabase]
GO
ALTER TABLE [dbo].[orderqty]
DROP CONSTRAINT [CK__orderqty__qty__628FA481]
No comments:
Post a Comment