I have a column with a \"DEFAULT\" constraint. I\'d like to create a script that drops that column.
The problem is that it returns this error:
Msg 50
You can get the constraint names by querying the information_schema system views.
select CONSTRAINT_NAME from INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE WHERE TABLE_NAME = '' AND COLUMN_NAME = 'IsClosed'