GetDatatypeByName Method (SQL-DMO)

The GetDatatypeByName method returns an object that references the named system or user-defined data type.

Applies To

Database Object

Syntax

object.GetDatatypeByName( Datatype ) as Variant

Part Description
object Expression that evaluates to an object in the Applies To list
Datatype String specifying a system or user-defined data type by name

Returns

A variant referencing an object.

Remarks

Use the TypeOf property to determine the nature of the data type returned. Interpret the TypeOf property by using SQLDMO_OBJECT_TYPE.

Prototype (C/C++)

HRESULT GetDatatypeByName(
SQLDMO_LPCSTR szName,
LPSQLDMOSTDOBJECT* ppDBObject);

  


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