GetDatatypeByName Method
未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。
The GetDatatypeByName method returns an object that references the named system or user-defined data type.
語法
object
.GetDatatypeByName(
Datatype
)
as
Variant
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.
備註
Use the TypeOf property to determine the nature of the data type returned. Interpret the TypeOf property using SQLDMO_OBJECT_TYPE.