Unbinds a rule from a column or a user-defined datatype in the current database.
sp_unbindrule objname [, futureonly]
where
The rule is unbound from all existing columns of the user-defined datatype unless their default has previously been changed or the futureonly option is used.
To display the text of a rule, execute sp_helptext with the rule name as the parameter.
When you unbind a rule, the information about the binding is removed from the syscolumns table if the rule was bound to a column, and from the systypes table if the rule was bound to a user-defined datatype.
This example unbinds the rule from the startdate column of the employees table.
sp_unbindrule 'employees.startdate'
This example unbinds the rule from the user-defined datatype ssn. It unbinds the rule from existing and future columns of that type.
sp_unbindrule ssn
This example unbinds the rule from the user-defined datatype ssn without affecting existing ssn columns.
sp_unbindrule ssn, FUTUREONLY
Execute permission defaults to the object owner.
syscolumns, sysobjects, systypes
CREATE RULE | sp_bindrule |
DROP RULE | sp_helptext |