BindToDatatype Method (SQL-DMO)

The BindToDatatype method enables a Microsoft® SQL Server™ default or rule on the user-defined data type specified.

Applies To
Default Object Rule Object

Syntax

object.BindToDatatype( DatatypeName, [ FutureOnly ] )

Part Description
object Expression that evaluates to an object in the Applies To list.
DatatypeName String specifying an existing user-defined data type by name.
FutureOnly When True, binding does not cause a check of columns existing and defined using the data type. When False (default), existing values are checked for agreement with the rule.

Prototype (C/C++)

HRESULT BindToDatatype(
SQLDMO_LPCSTR DatatypeName,
BOOL bFutureOnly = FALSE);


(c) 1988-98 Microsoft Corporation. All Rights Reserved.