ListObjects List

SQLServer.Database Object

Description

Returns a list of DBObject objects containing the database objects stored in the database.

Visual Basic

DBObjectList = Database.ListObjects (
[[ObjectTypes :=] tObjects,]
[[SortBy :=] tSortBy] )

C++

HRESULT pDatabase->ListObjects (
LPSQLOLEDBOBJECTLIST*
ppDBObjectList,
SQLOLE_OBJECT_TYPE
tObjects = SQLOLEObj_AllDatabaseObjects,
SQLOLE_OBJSORT_TYPE
tSortBy = SQLOLEObjSort_Name );

Elements

Element Type Description

DBObjectList DBObjectList Returned list of DBObject objects
tObjects SQLOLE_OBJECT_TYPE Types of database objects to list
tSortBy SortType How the list is sorted