DefaultRuleBase.UnbindFromDataType Method

Unbinds the default or rule from the specified data type

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub UnbindFromDataType ( _
    datatypename As String, _
    bindcolumns As Boolean _
)
'Usage
Dim instance As DefaultRuleBase 
Dim datatypename As String 
Dim bindcolumns As Boolean

instance.UnbindFromDataType(datatypename, _
    bindcolumns)
public void UnbindFromDataType(
    string datatypename,
    bool bindcolumns
)
public:
void UnbindFromDataType(
    String^ datatypename, 
    bool bindcolumns
)
member UnbindFromDataType : 
        datatypename:string * 
        bindcolumns:bool -> unit
public function UnbindFromDataType(
    datatypename : String, 
    bindcolumns : boolean
)

Parameters

  • bindcolumns
    Type: System.Boolean
    A Boolean value that specifies whether to unbind the default or rule from data types that are already bound to a column.

Examples

Creating, Altering, and Removing Defaults

Creating, Altering, and Removing Rules

See Also

Reference

DefaultRuleBase Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Working with Database Objects

Rules

Defaults

sp_unbindefault (Transact-SQL)

sp_unbindrule (Transact-SQL)