GetDatatypeByName Method

SQLServer.Database Object

Description

Returns a DBObject object that contains the specified system datatype or user-defined datatype object.

Visual Basic

DBObject = Database.GetDatatypeByName ( [TypeName :=] idDatatype )

C++

HRESULT pDatabase->GetDatatypeByName (
SQLOLE_LPCSTR
idDatatype,
LPSQLOLESTDOBJECT*
ppDBObject );

Elements

Element Type Description

DBObject DBObject Returned DBObject object
idDatatype Identifier Name of a system datatype or a user-defined datatype