BindToDatatype Method

SQLServer.Database.Rule Object

Description

Binds a rule with an existing user-defined datatype.

Visual Basic

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

C++

HRESULT pRule->BindToDatatype (
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 inheriting the new rule. If True, existing columns are not bound to the new rule. If False, existing columns are bound to the new rule. The default is False.

Reference

sp_bindrule