UnbindFromDatatype Method

SQLServer.Database.Rule Object

Description

Breaks an existing binding between a rule and a user-defined datatype.

Visual Basic

Rule.UnbindFromDatatype (
[DatatypeName :=] idDatatype,
[[FutureOnly :=] bFutureOnly] )

C++

HRESULT pRule->UnbindFromDatatype (
SQLOLE_LPCSTR
idDatatype,
BOOL
bFutureOnly = FALSE );

Elements

Element Type Description

idDatatype Identifer User-defined datatype
bFutureOnly Boolean Determines if existing columns of the specified datatype are prevented from losing the old rule. If True, existing columns keep the old rule. If False, existing columns lose the old rule. The default is False.

Reference

sp_unbindrule