BindToDatatype Method

SQLServer.Database.Default Object

Description

Binds a default with an existing user-defined datatype.

Visual Basic

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

C++

HRESULT pDefault->BindToDatatype (
SQLOLE_LPCSTR
idDatatype,
BOOL
bFutureOnly = FALSE );

Elements

Element Type Description

idDatatype Identifier User-defined datatype
bFutureOnly Boolean Determines if existing columns of the specified datatype are prevented from inheriting the new default. If True, existing columns are not bound to the new default. If False, existing columns are bound to the new default. The default is False.

Reference

sp_bindefault