다음을 통해 공유


BindToDatatype Method

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The BindToDatatype method enables a default or rule on the user-defined data type specified.

구문

object.BindToDatatype(DatatypeName, [ FutureOnly ] )

Parts

  • 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);