Unbinds (removes) a default from a column or from a user-defined datatype in the current database.
sp_unbindefault objname [, futureonly]
where
Columns of the user-defined datatype lose their current default unless their default has previously been changed or the futureonly option is used.
To display the text of a default, execute sp_helptext with the default name as the parameter.
When you unbind a default, the information about the binding is removed from the syscolumns table if the default was bound to a column, and from the systypes table if the default was bound to a user-defined datatype.
This example unbinds the default from the startdate column of the employees table.
sp_unbindefault 'employees.startdate'
This example unbinds the default from the user-defined datatype ssn and all columns of that type. It unbinds existing and future columns of that type.
sp_unbindefault ssn
This example unbinds future uses of the user datatype ssn, but existing columns of type ssn are unaffected.
sp_unbindefault ssn, FUTUREONLY
Execute permission defaults to the specified object owner.
syscolumns, sysobjects, systypes
CREATE DEFAULT | sp_bindefault |
DROP DEFAULT | sp_helptext |