Freigeben über


GetDatatypeByName Method

Diese Funktion wird in zukünftigen Versionen von Microsoft SQL Server nicht mehr bereitgestellt. Verwenden Sie diese Funktion beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

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

Syntax

object.GetDatatypeByName(Datatype)asVariant

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

  • Datatype
    String that specifies a system or user-defined data type by name.

Prototype (C/C++)

HRESULT GetDatatypeByName(
SQLDMO_LPCSTR szName,
LPSQLDMOSTDOBJECT* ppDBObject);

Returns

A variant that references an object.

Hinweise

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

Applies To: